mirror of
https://github.com/RPCSX/llvm.git
synced 2025-05-13 10:56:01 +00:00
Add comments about why we put LoopSink pass at the very late stage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286480 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
68c986108b
commit
fb6e3a842a
@ -647,6 +647,10 @@ void PassManagerBuilder::populateModulePassManager(
|
||||
if (MergeFunctions)
|
||||
MPM.add(createMergeFunctionsPass());
|
||||
|
||||
// LoopSink pass sinks instructions hoisted by LICM, which serves as a
|
||||
// canonicalization pass that enables other optimizations. As a result,
|
||||
// LoopSink pass needs to be a very late IR pass to avoid undoing LICM
|
||||
// result too early.
|
||||
MPM.add(createLoopSinkPass());
|
||||
// Get rid of LCSSA nodes.
|
||||
MPM.add(createInstructionSimplifierPass());
|
||||
|
Loading…
x
Reference in New Issue
Block a user