[llvm] [Loads] Fix crash on mixed-address-space pointers in no-AA store check (PR #195256)

Jiří Filek via llvm-commits llvm-commits at lists.llvm.org
Fri May 1 04:43:43 PDT 2026


================
@@ -580,6 +580,8 @@ static bool areNonOverlapSameBaseLoadAndStore(const Value *LoadPtr,
       DL, StoreOffset, /* AllowNonInbounds */ false);
   if (LoadBase != StoreBase)
     return false;
+  if (LoadOffset.getBitWidth() != StoreOffset.getBitWidth())
----------------
fileho wrote:

You are right, I have moved it there

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


More information about the llvm-commits mailing list