[PATCH] D64220: [PowerPC] Remove redundant load immediate instructions
Nemanja Ivanovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 5 11:17:33 PDT 2019
nemanjai added inline comments.
================
Comment at: llvm/test/CodeGen/PowerPC/remove-redundant-load-imm.mir:5
+---
+name: t1
+alignment: 4
----------------
steven.zhang wrote:
> Could you show me the LLVM IR that produce these two redundant LI ? So that, we could figure out if they can be avoided instead of removing it in the peephole.
More or less any IR that has multiple PHI nodes that have a zero coming in from the same block and the register has to be spilled.
Perhaps we should add a test case such as that (with an inline asm call that clobbers registers thereby requiring spills).
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64220/new/
https://reviews.llvm.org/D64220
More information about the llvm-commits
mailing list