[llvm] [AMDGPU] Fix SIFoldOperands miscompiling values that leave a divergent loop (PR #203256)

Arseniy Obolenskiy via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 11 09:12:49 PDT 2026


================
@@ -970,6 +982,22 @@ bool SIFoldOperandsImpl::isUseSafeToFold(const MachineInstr &MI,
   return !TII->isSDWA(MI);
 }
 
+// An SGPR->VGPR copy inside a divergent loop latches each lane value as it
----------------
aobolensk wrote:

Do you have any suggestion on better location?

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


More information about the llvm-commits mailing list