Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [NewPM] Add an SROA pass after loop unroll | Guozhi Wei | 2019-11-01 | 1 | -0/+61 |
If there is a small local array accessed in a loop, SROA can't handle memory accesses with variant offset inside a loop, after the loop is fully unrolled, all memory accesses to the array are with fixed offset, so now they can be processed by SROA. But there is no more SROA passes after loop unroll. This patch add an SROA pass after loop unroll to handle this pattern. Differential Revision: https://reviews.llvm.org/D68593 |