Commit d337d11
committed
[BasicAA][LAA] Don't use same-block phis in cross iteration mode
In 4de3184 we exposed BasicAA's
cross-iteration mode for use in LAA, so we can handle selects
with equal conditions correctly (where the select condition is
not actually equal across iterations).
However, if we replace the selects with equivalent phis, the
issue still exists. In the phi case, we effectively still have
an assumption that the condition(s) that control which phi arg
is used will be the same across iterations. Fix this by disabling
this case in cross-iteration mode.1 parent 681939e commit d337d11
File tree
2 files changed
+9
-3
lines changed- llvm
- lib/Analysis
- test/Analysis/LoopAccessAnalysis
2 files changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1447 | 1447 | | |
1448 | 1448 | | |
1449 | 1449 | | |
1450 | | - | |
| 1450 | + | |
| 1451 | + | |
1451 | 1452 | | |
1452 | | - | |
| 1453 | + | |
1453 | 1454 | | |
1454 | 1455 | | |
1455 | 1456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
| 48 | + | |
48 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
49 | 54 | | |
50 | 55 | | |
51 | 56 | | |
| |||
0 commit comments