[PATCH] D69069: [IPO] Convert LoopExtractor pass from LoopPass to ModulePass
Alina Sbirlea via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 23 11:00:14 PDT 2019
asbirlea accepted this revision.
asbirlea added a comment.
This revision is now accepted and ready to land.
Since I don't really understand the CodeExtractor, I'm relying on the author or another reviewer to confirm the correctness here.
This patch by itself looks good, but please wait to see if there are additional comments for the other reviewers before checking in.
================
Comment at: llvm/lib/Transforms/IPO/LoopExtractor.cpp:61
AU.addRequired<DominatorTreeWrapperPass>();
AU.addRequired<LoopInfoWrapperPass>();
AU.addUsedIfAvailable<AssumptionCacheTracker>();
----------------
Does this preserve LoopInfo? If yes, `addPreserved`, if unsure best to leave as is.
Similar question on the DomTree.
This is an item where I don't honestly understand if there are potential correctness implications in `extractLoops` if the DT is not preserved while iterating.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69069/new/
https://reviews.llvm.org/D69069
More information about the llvm-commits
mailing list