llvm-project
2eb63982 - [SROA] Unfold gep of index phi (#83087)

Commit
1 year ago
[SROA] Unfold gep of index phi (#83087) If a gep has only one phi as one of its operands and the remaining indexes are constant, we can unfold `gep ptr, (phi idx1, idx2)` to `phi ((gep ptr, idx1), (gep ptr, idx2))`. Take care not to unfold recursive phis. Followup to #80983.
Author
Parents
Loading