Commit 7f88177
committed
[DAGCombiner] Fix issue llvm#121372
PR llvm#118823 added a DAG combine for extracting elements of a
vector returned from SETCC, however it doesn't correctly deal
with the case where the vector element type is not i1. In
this case we have to take account of the boolean contents,
which are represent differently between vectors and scalars.
For now, I've just restricted the optimisation to i1 types.
Fixes llvm#1213721 parent 15b8b7e commit 7f88177
File tree
2 files changed
+7
-5
lines changed- llvm
- lib/CodeGen/SelectionDAG
- test/CodeGen/AArch64
2 files changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22809 | 22809 | | |
22810 | 22810 | | |
22811 | 22811 | | |
22812 | | - | |
| 22812 | + | |
| 22813 | + | |
22813 | 22814 | | |
22814 | 22815 | | |
22815 | 22816 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | 61 | | |
63 | 62 | | |
64 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
| 148 | + | |
| 149 | + | |
147 | 150 | | |
148 | | - | |
149 | | - | |
150 | 151 | | |
151 | 152 | | |
152 | 153 | | |
| |||
0 commit comments