mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
Add comments about why we put LoopSink pass at the very late stage.
llvm-svn: 286480
This commit is contained in:
parent
97b59349cb
commit
334f136dbd
@ -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…
Reference in New Issue
Block a user