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

Commit
3 days ago
[Loads] Fix crash on mixed-address-space pointers in no-AA store check (#195256) Fix crash on mixed-address-space pointers in no-AA store check. `areNonOverlapSameBaseLoadAndStore` built `ConstantRanges` from `APInts` sized by the load and store pointer index widths. When those widths differ (AMDGPU's AS=0 vs AS=5), `ConstantRange::intersectWith` asserts. Adds early return mirroring `BasicAA` path. This can happen when `FindAvailableLoadedValue` is called without `BatchAAResults`. The path with `BatchAAResults` already handles it. This crash was observed in #190607, so it was reverted in #195135.
Author
Parents
Loading