add algebraic IR simplification

This commit is contained in:
2026-06-30 00:31:17 +08:00
parent 108f3d9e4b
commit 6f943b395f
4 changed files with 115 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ void RunFunctionOptimizationPasses(Function* func, Context& ctx) {
changed |= RunConstProp(func, ctx);
changed |= RunConstFold(func, ctx);
changed |= RunAlgebraicSimplify(func, ctx);
changed |= RunCSE(func);
changed |= RunLICM(func);
changed |= RunDCE(func);