Commit 646abe4
committed
[GlobalISel] Add an assert for the DemandedElts APInt size.
Similar to the other implementations in DAG/ValueTracking, this adds an assert
that the size of the DemandedElts is what we expect it to be - the size of a
fixed length vector or APInt(1,1) otherwise. The G_BUILDVECTOR is fixed as it
was passing an original DemandedElts for the scalar operands.1 parent c1b206f commit 646abe4
1 file changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
151 | 162 | | |
152 | 163 | | |
153 | 164 | | |
| |||
196 | 207 | | |
197 | 208 | | |
198 | 209 | | |
199 | | - | |
| 210 | + | |
200 | 211 | | |
201 | 212 | | |
202 | 213 | | |
| |||
0 commit comments