[llvm] [AMDGPU] Change control flow intrinsic lowering making the wave to re… (PR #86805)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 15 12:49:13 PDT 2024


================
@@ -15619,6 +15619,91 @@ void SITargetLowering::finalizeLowering(MachineFunction &MF) const {
     }
   }
 
+  // ISel inserts copy to regs for the successor PHIs
+  // at the BB end. We need to move the SI_WAVE_RECONVERGE right before the branch.
+  // Even we don't have to move SI_WAVE_RECONVERGE we need to take care of the
+  // S_CBRANCH_SCC0/1 as SI_WAVE_RECONVERGE overwrites SCC
----------------
arsenm wrote:

This should have been emitted as a copy pair to a temp vreg? 

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


More information about the llvm-commits mailing list