[PATCH] D69168: [PowerPC] Fold redundant load immediates of zero and delete if possible
Kamau Bridgeman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 18 07:32:31 PDT 2019
kamaub created this revision.
kamaub added reviewers: lei, nemanjai, stefanp, hfinkel, power-llvm-team, jsji.
Herald added subscribers: llvm-commits, shchenz, MaskRay, kbarton, hiraditya.
Herald added a project: LLVM.
This patch folds redundant load immediates into a zero for instructions
which recognise this as the value zero and not the register. If the load
immediate is no longer in use it is then deleted.
This is already done in earlier passes but the ppc-mi-peephole allows for
a more general implementation.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D69168
Files:
llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
llvm/lib/Target/PowerPC/PPCInstrInfo.h
llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
llvm/test/CodeGen/PowerPC/fold-remove-li.ll
llvm/test/CodeGen/PowerPC/save-crbp-ppc32svr4.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69168.225617.patch
Type: text/x-patch
Size: 7785 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191018/06b78e6d/attachment-0001.bin>
More information about the llvm-commits
mailing list