[llvm] AArch64: Fix assert on fold of undef operand (PR #218600)
Nathan Corbyn via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 26 03:50:50 PDT 2026
================
@@ -10102,9 +10102,9 @@ bool AArch64InstrInfo::optimizeCondBranch(MachineInstr &MI) const {
return false;
if (!MRI->hasOneNonDBGUse(CopyVReg))
return false;
- if (!MRI->hasOneDef(CopyVReg))
- return false;
----------------
cofibrant wrote:
Ah I see, thanks!
https://github.com/llvm/llvm-project/pull/218600
More information about the llvm-commits
mailing list