[llvm] [AArch64] Drop poison-generating flags in `genSubAdd2SubSub` combiner (PR #90028)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 25 15:01:58 PDT 2024
================
@@ -6924,14 +6924,20 @@ genSubAdd2SubSub(MachineFunction &MF, MachineRegisterInfo &MRI,
assert((Opcode == AArch64::SUBWrr || Opcode == AArch64::SUBXrr) &&
"Unexpected instruction opcode.");
+ Root.mergeFlagsWith(*AddMI);
----------------
v01dXYZ wrote:
Hi,
I think you made a little mistake as `mergeFlagsWith` is a const method.
https://github.com/llvm/llvm-project/pull/90028
More information about the llvm-commits
mailing list