[llvm] [LLVM] Insert IMPLICIT_DEF for a register sequence if any operand is undef (PR #158000)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 10 23:51:32 PDT 2025
================
@@ -1998,9 +1999,17 @@ void TwoAddressInstructionImpl::eliminateRegSequence(
.valueOut();
}
}
-
+ for (unsigned i = 1, e = MI.getNumOperands(); i < e; i += 2)
+ if (MI.getOperand(i).isReg() && MI.getOperand(i).isUndef()) {
----------------
arsenm wrote:
You do not need to guard against non-register operands to REG_SEQUENCE
https://github.com/llvm/llvm-project/pull/158000
More information about the llvm-commits
mailing list