Commit ba7135e
committed
[LoopVectorize] Make collectInLoopReductions more efficient
We call collectInLoopReductions in multiple places asking
the same question with exactly the same answer. For
example, this was being called from a loop in
calculateRegisterUsage and this patch hoists the call out
to above the loop. In addition I've changed
collectInLoopReductions so that it bails out if we've
already built up a list.1 parent 7391327 commit ba7135e
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5260 | 5260 | | |
5261 | 5261 | | |
5262 | 5262 | | |
| 5263 | + | |
| 5264 | + | |
5263 | 5265 | | |
5264 | 5266 | | |
5265 | 5267 | | |
| |||
5276 | 5278 | | |
5277 | 5279 | | |
5278 | 5280 | | |
5279 | | - | |
5280 | | - | |
5281 | 5281 | | |
5282 | 5282 | | |
5283 | 5283 | | |
| |||
7008 | 7008 | | |
7009 | 7009 | | |
7010 | 7010 | | |
| 7011 | + | |
| 7012 | + | |
| 7013 | + | |
| 7014 | + | |
7011 | 7015 | | |
7012 | 7016 | | |
7013 | 7017 | | |
| |||
0 commit comments