[llvm] 2e823da - Revert "[AMDGPU] Update LiveVariables in SILowerControlFlow"

Mateja Marjanovic via llvm-commits llvm-commits at lists.llvm.org
Wed May 3 08:21:06 PDT 2023


Author: Mateja Marjanovic
Date: 2023-05-03T17:16:48+02:00
New Revision: 2e823da8dc652b23738e2d3b8e7e7f21335816eb

URL: https://github.com/llvm/llvm-project/commit/2e823da8dc652b23738e2d3b8e7e7f21335816eb
DIFF: https://github.com/llvm/llvm-project/commit/2e823da8dc652b23738e2d3b8e7e7f21335816eb.diff

LOG: Revert "[AMDGPU] Update LiveVariables in SILowerControlFlow"

This reverts commit 069f027e1e6b1db9e3e6dcf4193c670e2be3d5d5.

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp b/llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp
index 9607092c70af..0e2bf9dad64f 100644
--- a/llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp
+++ b/llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp
@@ -427,8 +427,6 @@ void SILowerControlFlow::emitLoop(MachineInstr &MI) {
       BuildMI(MBB, &MI, DL, TII->get(Andn2TermOpc), Exec)
           .addReg(Exec)
           .add(MI.getOperand(0));
-  if (LV)
-    LV->replaceKillInstruction(MI.getOperand(0).getReg(), MI, *AndN2);
 
   auto BranchPt = skipToUncondBrOrEnd(MBB, MI.getIterator());
   MachineInstr *Branch =


        


More information about the llvm-commits mailing list