Skip to content

Commit

Permalink
Revert "Revert "[AMDGPU] Update LiveVariables in SILowerControlFlow""
Browse files Browse the repository at this point in the history
Accidental error.

This reverts commit 2e823da.
  • Loading branch information
Mateja Marjanovic committed May 3, 2023
1 parent f4f6eed commit ecf014e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,8 @@ 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 =
Expand Down

0 comments on commit ecf014e

Please sign in to comment.