Teach the code generator that rlwimi is commutable if the rotate amount
is zero. This lets the register allocator elide some copies in some cases. This implements CodeGen/PowerPC/rlwimi-commute.ll llvm-svn: 23292
Showing
- llvm/lib/Target/PowerPC/PPC32InstrInfo.cpp 32 additions, 0 deletionsllvm/lib/Target/PowerPC/PPC32InstrInfo.cpp
- llvm/lib/Target/PowerPC/PPC32InstrInfo.h 4 additions, 0 deletionsllvm/lib/Target/PowerPC/PPC32InstrInfo.h
- llvm/lib/Target/PowerPC/PowerPCInstrInfo.td 2 additions, 1 deletionllvm/lib/Target/PowerPC/PowerPCInstrInfo.td
Loading
Please register or sign in to comment