Commit 700a905
committed
[DAGISel][ARM] Fix vector truncate combine for big-endian
This DAG combine was incorrect for big-endian targets, because it
assumes that when a bitcast changes the lane width, the
least-significant bits of the wider lanes are in the lower-numbered
lanes of the smaller type, which is only true for little-endian.1 parent 7fb3d04 commit 700a905
File tree
2 files changed
+20
-2
lines changed- llvm
- lib/CodeGen/SelectionDAG
- test/CodeGen/ARM
2 files changed
+20
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15495 | 15495 | | |
15496 | 15496 | | |
15497 | 15497 | | |
| 15498 | + | |
| 15499 | + | |
15498 | 15500 | | |
15499 | 15501 | | |
15500 | 15502 | | |
15501 | 15503 | | |
15502 | 15504 | | |
15503 | | - | |
| 15505 | + | |
| 15506 | + | |
15504 | 15507 | | |
15505 | 15508 | | |
15506 | 15509 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
8 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
9 | 24 | | |
10 | 25 | | |
11 | 26 | | |
| |||
0 commit comments