[llvm] [Codegen] Remove redundant instruction using machinelateCleanup (PR #139716)
Rohit Aggarwal via llvm-commits
llvm-commits at lists.llvm.org
Mon May 26 02:51:05 PDT 2025
================
@@ -187,9 +187,26 @@ static bool isCandidate(const MachineInstr *MI, Register &DefedReg,
const MachineOperand &MO = MI->getOperand(i);
if (MO.isReg()) {
if (MO.isDef()) {
+ // To get the \DefedReg value, we need to check that 1st MachineOperand
----------------
rohitaggarwal007 wrote:
Ok
https://github.com/llvm/llvm-project/pull/139716
More information about the llvm-commits
mailing list