[PATCH] D132347: [RISCV] Use analyzeBranch in RISCVRedundantCopyElimination.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 22 08:31:43 PDT 2022
craig.topper planned changes to this revision.
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVRedundantCopyElimination.cpp:145
// BEQ/BNE. Conservatively mark as much as we can live.
- CondBr->clearRegisterKills(TargetReg, TRI);
+ Cond[1].setIsKill(false);
----------------
This line is wrong. It’s a copy of the operand not a reference to the original operand. This doesn’t change the original instruction
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132347/new/
https://reviews.llvm.org/D132347
More information about the llvm-commits
mailing list