From e392bb98883d6c165629c8ff6f34151d63b23d16 Mon Sep 17 00:00:00 2001 From: ARATA Mizuki Date: Tue, 17 Sep 2024 21:25:24 +0900 Subject: [PATCH] Change the order of optimizations --- src/main.sml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.sml b/src/main.sml index 1bef00a..921abd7 100644 --- a/src/main.sml +++ b/src/main.sml @@ -105,7 +105,6 @@ struct val timer = Timer.startCPUTimer () val ctx' = {nextVId = #nextVId ctx, simplificationOccurred = ref false} - val cexp = CpsDeadCodeElimination.goCExp (ctx', cexp) val cexp = CpsUncurry.goCExp (ctx', cexp) val cexp = CpsUnpackRecordParameter.goCExp (ctx', cexp) val cexp = CpsLoopOptimization.goCExp (ctx', cexp) @@ -113,6 +112,7 @@ struct val cexp = CpsConstantRefCell.goCExp (ctx', cexp) val cexp = CpsInline.goCExp (ctx', cexp) val cexp = CpsEtaConvert.go (ctx', cexp) + val cexp = CpsDeadCodeElimination.goCExp (ctx', cexp) in if #printTimings ctx then print