Commit 86e8aa8
[LSR] Insert the transformed IV increment in the user block (llvm#169515)
Currently we try to hoist the transformed IV increment instruction to
the header block to help with generation of postincrement instructions,
but this only works if the user instruction is also in the header. We
should instead be trying to insert it in the same block as the user.1 parent f7b4b55 commit 86e8aa8
File tree
3 files changed
+29
-35
lines changed- llvm
- lib/Transforms/Scalar
- test
- CodeGen/Thumb2
- Transforms/LoopStrengthReduce/AArch64
3 files changed
+29
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6024 | 6024 | | |
6025 | 6025 | | |
6026 | 6026 | | |
6027 | | - | |
6028 | | - | |
6029 | | - | |
6030 | | - | |
6031 | | - | |
6032 | | - | |
| 6027 | + | |
| 6028 | + | |
| 6029 | + | |
| 6030 | + | |
| 6031 | + | |
| 6032 | + | |
| 6033 | + | |
| 6034 | + | |
| 6035 | + | |
| 6036 | + | |
6033 | 6037 | | |
6034 | | - | |
6035 | | - | |
6036 | | - | |
6037 | | - | |
6038 | | - | |
6039 | | - | |
6040 | | - | |
6041 | | - | |
6042 | | - | |
6043 | | - | |
6044 | | - | |
6045 | | - | |
6046 | | - | |
6047 | | - | |
6048 | | - | |
| 6038 | + | |
6049 | 6039 | | |
| 6040 | + | |
6050 | 6041 | | |
6051 | 6042 | | |
6052 | | - | |
6053 | | - | |
| 6043 | + | |
| 6044 | + | |
| 6045 | + | |
| 6046 | + | |
| 6047 | + | |
| 6048 | + | |
| 6049 | + | |
| 6050 | + | |
| 6051 | + | |
| 6052 | + | |
| 6053 | + | |
| 6054 | + | |
6054 | 6055 | | |
6055 | 6056 | | |
6056 | 6057 | | |
| |||
6071 | 6072 | | |
6072 | 6073 | | |
6073 | 6074 | | |
6074 | | - | |
6075 | | - | |
6076 | | - | |
| 6075 | + | |
6077 | 6076 | | |
6078 | 6077 | | |
6079 | 6078 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | | - | |
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
| |||
101 | 100 | | |
102 | 101 | | |
103 | 102 | | |
104 | | - | |
105 | | - | |
| 103 | + | |
106 | 104 | | |
107 | 105 | | |
108 | 106 | | |
| |||
134 | 132 | | |
135 | 133 | | |
136 | 134 | | |
137 | | - | |
138 | | - | |
| 135 | + | |
139 | 136 | | |
140 | 137 | | |
141 | 138 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | | - | |
235 | 233 | | |
236 | 234 | | |
237 | 235 | | |
| |||
254 | 252 | | |
255 | 253 | | |
256 | 254 | | |
| 255 | + | |
257 | 256 | | |
258 | 257 | | |
259 | 258 | | |
| |||
263 | 262 | | |
264 | 263 | | |
265 | 264 | | |
266 | | - | |
267 | 265 | | |
268 | 266 | | |
269 | 267 | | |
| |||
0 commit comments