Commit bc1f3eb
committed
[DAGCombiner] Pre-commit test case for ReduceLoadOpStoreWidth. NFC
Adding test cases related to narrowing of load-op-store sequences.
ReduceLoadOpStoreWidth isn't careful enough, so it may end up
creating load/store operations that access memory outside the region
touched by the original load/store. Using ARM as a target for the
test cases to show what happens for both little-endian and big-endian.
This patch also adds a way to override the TLI.isNarrowingProfitable
check in DAGCombiner::ReduceLoadOpStoreWidth by using the option
-combiner-reduce-load-op-store-width-force-narrowing-profitable.
Idea is that it should be simpler to for example add lit tests
verifying that the code is correct for big-endian (which otherwise
is difficult since there are no in-tree big-endian targets that
is overriding TLI.isNarrowingProfitable).
This is a pre-commit for
#1192031 parent 03019c6 commit bc1f3eb
File tree
2 files changed
+80
-3
lines changed- llvm
- lib/CodeGen/SelectionDAG
- test/CodeGen/ARM
2 files changed
+80
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
141 | 146 | | |
142 | 147 | | |
143 | 148 | | |
| |||
20351 | 20356 | | |
20352 | 20357 | | |
20353 | 20358 | | |
20354 | | - | |
20355 | | - | |
20356 | | - | |
| 20359 | + | |
| 20360 | + | |
| 20361 | + | |
| 20362 | + | |
| 20363 | + | |
20357 | 20364 | | |
20358 | 20365 | | |
20359 | 20366 | | |
20360 | 20367 | | |
20361 | 20368 | | |
20362 | 20369 | | |
| 20370 | + | |
| 20371 | + | |
| 20372 | + | |
| 20373 | + | |
| 20374 | + | |
| 20375 | + | |
| 20376 | + | |
| 20377 | + | |
| 20378 | + | |
| 20379 | + | |
| 20380 | + | |
| 20381 | + | |
20363 | 20382 | | |
20364 | 20383 | | |
20365 | 20384 | | |
20366 | 20385 | | |
| 20386 | + | |
20367 | 20387 | | |
20368 | 20388 | | |
20369 | 20389 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
0 commit comments