Commit 6fc8ec7
authored
[InstCombine] Restore splat gep support in OptimizePointerDifference() (llvm#143906)
When looking for the common base pointer, support the case where the
type changes because the GEP goes from pointer to vector of pointers.
This was supported prior to llvm#142958.1 parent e2c27fd commit 6fc8ec7
File tree
2 files changed
+34
-3
lines changed- llvm
- lib/Transforms/InstCombine
- test/Transforms/InstCombine
2 files changed
+34
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2088 | 2088 | | |
2089 | 2089 | | |
2090 | 2090 | | |
2091 | | - | |
2092 | | - | |
2093 | 2091 | | |
2094 | 2092 | | |
2095 | 2093 | | |
| |||
2132 | 2130 | | |
2133 | 2131 | | |
2134 | 2132 | | |
2135 | | - | |
| 2133 | + | |
2136 | 2134 | | |
2137 | 2135 | | |
2138 | 2136 | | |
2139 | 2137 | | |
2140 | 2138 | | |
| 2139 | + | |
| 2140 | + | |
| 2141 | + | |
2141 | 2142 | | |
2142 | 2143 | | |
2143 | 2144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
995 | 995 | | |
996 | 996 | | |
997 | 997 | | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
0 commit comments