Commit 98dda9d
[InstCombine] PR58901 - fix bug with swapping GEP of different types (#7367)
Fix llvm/llvm-project#58901 by adding stricter
check whether non-opaque GEP can be swapped. This will not affect GEP
swapping optimization in the future since we are switching to opaque GEP
Reviewed By: clin1
Differential Revision: https://reviews.llvm.org/D137752
Co-authored-by: William Huang <[email protected]>1 parent 5b1bce1 commit 98dda9d
File tree
2 files changed
+24
-0
lines changed- llvm
- lib/Transforms/InstCombine
- test/Transforms/InstCombine
2 files changed
+24
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2009 | 2009 | | |
2010 | 2010 | | |
2011 | 2011 | | |
| 2012 | + | |
2012 | 2013 | | |
2013 | 2014 | | |
2014 | 2015 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments