[all-commits] [llvm/llvm-project] 2eb639: [SROA] Unfold gep of index phi (#83087)
Arthur Eubanks via All-commits
all-commits at lists.llvm.org
Wed Feb 28 10:53:58 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2eb63982e88b9ed8336158d35884b1a1d04a0f78
https://github.com/llvm/llvm-project/commit/2eb63982e88b9ed8336158d35884b1a1d04a0f78
Author: Arthur Eubanks <aeubanks at google.com>
Date: 2024-02-28 (Wed, 28 Feb 2024)
Changed paths:
M llvm/lib/Transforms/Scalar/SROA.cpp
M llvm/test/Transforms/SROA/phi-and-select.ll
M llvm/test/Transforms/SROA/phi-gep.ll
Log Message:
-----------
[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.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list