Skip to content

Commit ad37552

Browse files
committed
fix: move structProjCases pass above extendJoinPointContext
1 parent 6a698c1 commit ad37552

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Lean/Compiler/LCNF/Passes.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def builtinPassManager : PassManager := {
6868
toMono,
6969
simp (occurrence := 3) (phase := .mono),
7070
reduceJpArity (phase := .mono),
71+
structProjCases,
7172
extendJoinPointContext (phase := .mono) (occurrence := 0),
7273
floatLetIn (phase := .mono) (occurrence := 1),
7374
reduceArity,
@@ -78,7 +79,6 @@ def builtinPassManager : PassManager := {
7879
lambdaLifting,
7980
extendJoinPointContext (phase := .mono) (occurrence := 1),
8081
simp (occurrence := 5) (phase := .mono),
81-
structProjCases,
8282
cse (occurrence := 2) (phase := .mono),
8383
saveMono, -- End of mono phase
8484
extractClosed

0 commit comments

Comments
 (0)