[llvm] [MachineSink] Clear kill flags of sunk addressing mode registers (PR #75072)

David Green via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 11 22:17:32 PST 2023


================
@@ -530,6 +525,14 @@ bool MachineSinking::PerformSinkAndFold(MachineInstr &MI,
     } else {
----------------
davemgreen wrote:

I was thinking of this, if we sink op1 pasted the killed a
```
x = op1 a, b
y = op2 killed a
z = copy x
```

https://github.com/llvm/llvm-project/pull/75072


More information about the llvm-commits mailing list