[llvm] [Loads] Fix crash on mixed-address-space pointers in no-AA store check (PR #195256)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri May 1 04:35:42 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())
----------------
nikic wrote:
Move this check before the stripAndAccumulateConstantOffsets?
https://github.com/llvm/llvm-project/pull/195256
More information about the llvm-commits
mailing list