[llvm] [AMDGPU] Handle MachineOperandType global address in SIFoldOperands. (PR #135424)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 11 12:41:58 PDT 2025


================
@@ -1159,6 +1159,8 @@ void SIFoldOperandsImpl::foldOperand(
 
         UseMI->setDesc(TII->get(AMDGPU::S_MOV_B32));
 
+        if (OpToFold.isGlobal())
+          return;
----------------
arsenm wrote:

This is still going to break on any non-global values 

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


More information about the llvm-commits mailing list