[llvm] [AMDGPU] Reject image-load merges when either op has TFE/LWE (PR #210583)

Piotr Sobczak via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 20 09:00:05 PDT 2026


================
@@ -2676,6 +2676,17 @@ SILoadStoreOptimizer::collectMergeableInsts(
       }
     }
 
+    // Do not merge MIMG instructions with tfe or lwe enabled.
+    // TFE/LWE add a status result that the image merge path does not model.
+    if (InstClass == MIMG) {
----------------
piotrAMD wrote:

else if

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


More information about the llvm-commits mailing list