Commit 36b709d
committed
[DAGCombiner] Fix mayAlias not accounting for scalable MMOs with offsets
In llvm#70452 DAGCombiner::mayAlias was taught to handle scalable vectors, but when it checks via AA->isNoAlias it didn't take into account the case where the size is scalable but there was an offset too.
For the fixed length case the offset was just accounted for by adding to the LocationSize, but for the scalable case there doesn't seem to be a way to represent both a scalable and fixed part in it. So this patch works around it by bailing if there is an offset.
Fixes llvm#905591 parent bd72f7b commit 36b709d
File tree
2 files changed
+13
-9
lines changed- llvm
- lib/CodeGen/SelectionDAG
- test/CodeGen/RISCV/rvv
2 files changed
+13
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28113 | 28113 | | |
28114 | 28114 | | |
28115 | 28115 | | |
28116 | | - | |
| 28116 | + | |
| 28117 | + | |
| 28118 | + | |
| 28119 | + | |
28117 | 28120 | | |
28118 | 28121 | | |
28119 | 28122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 7 | + | |
| 8 | + | |
12 | 9 | | |
13 | 10 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
0 commit comments