Commit 261fff3
committed
[AggressiveInstCombine] Use AA during store merge
This is a small extension of #147540, resolving one of the FIXME.
Instead of bailing out on any instruction that may read/write
memory, use AA to check whether it can alias the stored parts.
Do this using a crude check based on the underlying object only.1 parent cb8b0cd commit 261fff3
File tree
2 files changed
+10
-14
lines changed- llvm
- lib/Transforms/AggressiveInstCombine
- test/Transforms/AggressiveInstCombine/X86
2 files changed
+10
-14
lines changedLines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
965 | 965 | | |
966 | 966 | | |
967 | 967 | | |
| 968 | + | |
968 | 969 | | |
969 | 970 | | |
970 | 971 | | |
| |||
980 | 981 | | |
981 | 982 | | |
982 | 983 | | |
983 | | - | |
984 | | - | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
985 | 991 | | |
986 | 992 | | |
987 | 993 | | |
| |||
Lines changed: 2 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
362 | | - | |
363 | | - | |
| 362 | + | |
364 | 363 | | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | 364 | | |
370 | 365 | | |
371 | 366 | | |
| |||
403 | 398 | | |
404 | 399 | | |
405 | 400 | | |
406 | | - | |
407 | | - | |
| 401 | + | |
408 | 402 | | |
409 | | - | |
410 | | - | |
411 | | - | |
412 | | - | |
413 | 403 | | |
414 | 404 | | |
415 | 405 | | |
| |||
0 commit comments