[PATCH] D46377: [PowerPC] Forward source register of add-immediate to D-Form instructions
Nemanja Ivanovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 2 20:32:09 PDT 2018
nemanjai created this revision.
nemanjai added reviewers: hfinkel, echristo, kbarton.
Most D-Form instructions add their immediate operand (displacement) to their register input (base register). If the register input is produced by an add-immediate, we can just forward the operand of the add-immediate and update the displacement (as long as alignment is respected).
This comes up for a number of reasons (converting reg+reg instructions to reg+imm, the node that becomes the add-immediate being in a different block, etc.).
Repository:
rL LLVM
https://reviews.llvm.org/D46377
Files:
lib/Target/PowerPC/PPCInstrInfo.cpp
lib/Target/PowerPC/PPCInstrInfo.h
lib/Target/PowerPC/PPCMIPeephole.cpp
test/CodeGen/PowerPC/forward-addi-src-to-D-form.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46377.144977.patch
Type: text/x-patch
Size: 7629 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180503/f580d45b/attachment.bin>
More information about the llvm-commits
mailing list