[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 15:35:58 PDT 2025


================
@@ -47,6 +47,8 @@ static std::pair<bool, bool> runImpl(MachineFunction &MF) {
   const TargetInstrInfo *TII = MF.getSubtarget().getInstrInfo();
   const TargetLowering *TLI = MF.getSubtarget().getTargetLowering();
 
+  TLI->finalizeLowering(MF);
----------------
arsenm wrote:

This API is bad. We probably should split these into separate steps, but given no tests apparently rely on this order I guess this is fine for now 

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


More information about the llvm-commits mailing list