[llvm] [AMDGPU] SILowerI1Copies: clear kill flags on COPY (PR #65883)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 10 01:41:32 PDT 2023


================
@@ -708,6 +708,9 @@ bool SILowerI1Copies::lowerCopiesToI1() {
             .addImm(0);
         MI.getOperand(1).setReg(TmpReg);
         SrcReg = TmpReg;
+      } else {
+        // SrcReg needs to be live beyond copy.
+        MI.clearKillInfo();
----------------
arsenm wrote:

Don't you know the exact operand?

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


More information about the llvm-commits mailing list