1. [NewPM] Add an SROA pass after loop unroll (details)
Commit cecc0d27ad58c0aed8ef9ed99bbf691e137a0f26 by carrot
[NewPM] Add an SROA pass after loop unroll
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:
The file was modifiedllvm/test/Other/new-pm-thinlto-defaults.ll
The file was addedllvm/test/Other/unroll-sroa.ll
The file was modifiedllvm/lib/Passes/PassBuilder.cpp
The file was modifiedllvm/test/Other/new-pm-defaults.ll