================
@@ -1833,6 +1852,11 @@ AMDGPULegalizerInfo::AMDGPULegalizerInfo(const 
GCNSubtarget &ST_,
                                      {S16, ConstantPtr, S8, GlobalAlign8}})
           .legalIf([=](const LegalityQuery &Query) -> bool {
             return isLoadStoreLegal(ST, Query);
+          })
+          // Always take the custom path, so an unsupported access is
+          // diagnosed cleanly rather than failing to legalize.
+          .customIf([](const LegalityQuery &Query) -> bool {
----------------
arsenm wrote:

This is now ordered above some legal loads specified below, we want all legal 
cases to be first in the rule sets 

https://github.com/llvm/llvm-project/pull/213223
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to