Commit e89faba
committed
[DAGCombiner] Fix issue #121372
PR #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.
The code now explicitly performs an inreg sign extend in
order to get the same result.
Fixes #1213721 parent 5e6b156 commit e89faba
File tree
2 files changed
+33
-7
lines changed- llvm
- lib/CodeGen/SelectionDAG
- test/CodeGen/AArch64
2 files changed
+33
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22808 | 22808 | | |
22809 | 22809 | | |
22810 | 22810 | | |
22811 | | - | |
22812 | | - | |
22813 | | - | |
| 22811 | + | |
| 22812 | + | |
| 22813 | + | |
| 22814 | + | |
| 22815 | + | |
| 22816 | + | |
| 22817 | + | |
| 22818 | + | |
| 22819 | + | |
| 22820 | + | |
| 22821 | + | |
| 22822 | + | |
| 22823 | + | |
| 22824 | + | |
| 22825 | + | |
| 22826 | + | |
| 22827 | + | |
| 22828 | + | |
| 22829 | + | |
| 22830 | + | |
22814 | 22831 | | |
22815 | 22832 | | |
22816 | 22833 | | |
| |||
22834 | 22851 | | |
22835 | 22852 | | |
22836 | 22853 | | |
22837 | | - | |
22838 | | - | |
| 22854 | + | |
| 22855 | + | |
| 22856 | + | |
| 22857 | + | |
| 22858 | + | |
| 22859 | + | |
| 22860 | + | |
| 22861 | + | |
22839 | 22862 | | |
22840 | 22863 | | |
22841 | 22864 | | |
| |||
| 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 | | |
| |||
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
| 145 | + | |
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
147 | 149 | | |
148 | 150 | | |
149 | 151 | | |
| 152 | + | |
150 | 153 | | |
151 | 154 | | |
152 | 155 | | |
| |||
0 commit comments