[llvm] [AMDGPU] Fix undefined scc register in successor block of SI_KILL terminators (PR #134718)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 25 14:56:36 PDT 2025
================
@@ -4513,7 +4513,7 @@ Register SITargetLowering::getRegisterByName(const char *RegName, LLT VT,
MachineBasicBlock *
SITargetLowering::splitKillBlock(MachineInstr &MI,
MachineBasicBlock *BB) const {
- MachineBasicBlock *SplitBB = BB->splitAt(MI, false /*UpdateLiveIns*/);
+ MachineBasicBlock *SplitBB = BB->splitAt(MI, true /*UpdateLiveIns*/);
----------------
arsenm wrote:
```suggestion
MachineBasicBlock *SplitBB = BB->splitAt(MI, /*UpdateLiveIns=*/true);
```
https://github.com/llvm/llvm-project/pull/134718
More information about the llvm-commits
mailing list