Commit e810157
committed
[TableGen] More accurately calculate where the source variable ops start in PseudoLoweringEmitter::emitLoweringEmitter.
The code was using the number or source operands plus one. The
plus one seems to be an ARM specific value accounting for one of the
source operands having 2 sub operands. No other target in tree uses
PseudLowering with variadic instructions so this worked.
This patch replaces it with a proper count of the number of sub
operands of all operands. While there I update the loop to use
MIOperandNo so we don't need to count up the sub operands as we go.1 parent 4c67bdd commit e810157
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
251 | 250 | | |
252 | 251 | | |
| 252 | + | |
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
281 | 280 | | |
282 | 281 | | |
283 | | - | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
284 | 285 | | |
285 | | - | |
| 286 | + | |
286 | 287 | | |
287 | 288 | | |
288 | 289 | | |
| |||
0 commit comments