[PATCH] D36734: [PowerPC Peephole] Constants into a join add, use ADDI over LI/ADD.

Tony Jiang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 15 06:26:04 PDT 2017


jtony created this revision.

Two blocks prior to the join each perform an li and the the join block has an add using the initialized register. Optimize each predecessor block to instead use addi and delete the li's and add.


https://reviews.llvm.org/D36734

Files:
  lib/Target/PowerPC/PPCMIPeephole.cpp
  test/CodeGen/PowerPC/opt-li-add-to-addi.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36734.111152.patch
Type: text/x-patch
Size: 6554 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170815/f36548a7/attachment.bin>


More information about the llvm-commits mailing list