Passing AliasAnalysis results instead of nullptr appears to work just fine.
A couple new-pass-manager tests updated to align with new order of analyses.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM. It'd be great to add an instcombine test that uses new PM and requires AA to optimize as well. Can be in a follow-up commit if needed.
lib/Transforms/InstCombine/InstructionCombining.cpp | ||
---|---|---|
3289 ↗ | (On Diff #126840) | Chandler, may be you can answer this question: why do we need to preserve BasicAA if we already preserved AAManager? |
lib/Transforms/InstCombine/InstructionCombining.cpp | ||
---|---|---|
3289 ↗ | (On Diff #126840) | The AA manager just brokers access to the various different alias analyses. You still need to preserve the analyses themselves. Now that the invalidation support is fully wired up, we could probably remove the need to explicitly preserve the AAManager and just have it remain preserved automatically if all of the AAs are preserved. But it isn't a big deal. The only cost to invalidating the AAManager is that we have to go and look up the N different alias analyses for the next pass. |