Lab6: Implement DominatorTree-based natural loop discovery and loop-invariant code motion hoisting pass

This commit is contained in:
2026-06-01 15:45:10 +08:00
committed by CGH0S7
parent 4475e91bd8
commit 6f48016c10
6 changed files with 327 additions and 6 deletions

View File

@@ -39,6 +39,7 @@ bool RunConstFold(Function* func, Context& ctx);
bool RunDCE(Function* func);
bool RunCFGSimplify(Function* func);
bool RunCSE(Function* func);
bool RunLICM(Function* func);
// Run the optimization pipeline on a Function or Module
void RunOptimizationPasses(Module& module);