Commit 5d263ce
[SeparateConstOffsetFromGEP] Support multiple indices in reorderGEP (llvm#92339)
The code was essentially already ready to handle multiple indices -- we
only need to adjust the non-negative index check to check all indices,
instead of only the first one.
Change-Id: Icf2ccbd3efea42efd60b6ce47af1e253d104ae601 parent 7d33824 commit 5d263ce
File tree
2 files changed
+32
-13
lines changed- llvm
- lib/Transforms/Scalar
- test/Transforms/SeparateConstOffsetFromGEP/AMDGPU
2 files changed
+32
-13
lines changedLines changed: 6 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
977 | 977 | | |
978 | 978 | | |
979 | 979 | | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | 980 | | |
984 | 981 | | |
985 | 982 | | |
986 | | - | |
987 | | - | |
988 | 983 | | |
989 | 984 | | |
990 | 985 | | |
| |||
1002 | 997 | | |
1003 | 998 | | |
1004 | 999 | | |
1005 | | - | |
1006 | | - | |
1007 | | - | |
1008 | | - | |
1009 | | - | |
1010 | | - | |
1011 | | - | |
1012 | | - | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
1013 | 1006 | | |
1014 | 1007 | | |
1015 | 1008 | | |
| |||
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
0 commit comments