Commit 5797ed6
authored
[GISel][SDAG] Avoid push_back in loops for some shuffle mask handling. (llvm#119434)
Each call to push_back contains a check to see if the vector needs to
grow. Using resize or giving the size to the constructor can reduce
the number of checks for growing.1 parent d78fe84 commit 5797ed6
File tree
2 files changed
+10
-19
lines changed- llvm/lib/CodeGen
- GlobalISel
- SelectionDAG
2 files changed
+10
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6172 | 6172 | | |
6173 | 6173 | | |
6174 | 6174 | | |
6175 | | - | |
6176 | | - | |
6177 | | - | |
| 6175 | + | |
| 6176 | + | |
6178 | 6177 | | |
6179 | 6178 | | |
6180 | 6179 | | |
| |||
6254 | 6253 | | |
6255 | 6254 | | |
6256 | 6255 | | |
6257 | | - | |
| 6256 | + | |
6258 | 6257 | | |
6259 | 6258 | | |
6260 | 6259 | | |
6261 | | - | |
| 6260 | + | |
6262 | 6261 | | |
6263 | | - | |
| 6262 | + | |
6264 | 6263 | | |
6265 | | - | |
6266 | | - | |
6267 | 6264 | | |
6268 | 6265 | | |
6269 | 6266 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6421 | 6421 | | |
6422 | 6422 | | |
6423 | 6423 | | |
6424 | | - | |
| 6424 | + | |
6425 | 6425 | | |
6426 | 6426 | | |
6427 | 6427 | | |
6428 | | - | |
| 6428 | + | |
6429 | 6429 | | |
6430 | | - | |
| 6430 | + | |
6431 | 6431 | | |
6432 | | - | |
6433 | | - | |
6434 | 6432 | | |
6435 | 6433 | | |
6436 | 6434 | | |
| |||
6478 | 6476 | | |
6479 | 6477 | | |
6480 | 6478 | | |
6481 | | - | |
6482 | | - | |
6483 | | - | |
6484 | | - | |
6485 | | - | |
6486 | | - | |
| 6479 | + | |
| 6480 | + | |
6487 | 6481 | | |
6488 | 6482 | | |
6489 | 6483 | | |
| |||
0 commit comments