Skip to content

Commit

Permalink
procedure passes fix
Browse files Browse the repository at this point in the history
  • Loading branch information
csanadtelbisz committed Oct 19, 2024
1 parent f20c96d commit 4ba635b
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ class CPasses(checkOverflow: Boolean, parseContext: ParseContext, uniqueWarningL
FpFunctionsToExprsPass(parseContext),
CLibraryFunctionsPass(),
),
listOf(
// optimizing
SimplifyExprsPass(parseContext),
LoopUnrollPass(),
SimplifyExprsPass(parseContext),
EmptyEdgeRemovalPass(),
UnusedLocRemovalPass(),
),
listOf(
// trying to inline procedures
InlineProceduresPass(parseContext),
Expand All @@ -49,14 +57,6 @@ class CPasses(checkOverflow: Boolean, parseContext: ParseContext, uniqueWarningL
ReferenceElimination(parseContext),
MallocFunctionPass(parseContext),
),
listOf(
// optimizing
SimplifyExprsPass(parseContext),
LoopUnrollPass(),
SimplifyExprsPass(parseContext),
EmptyEdgeRemovalPass(),
UnusedLocRemovalPass(),
),
listOf(
StaticCoiPass(),
),
Expand Down

0 comments on commit 4ba635b

Please sign in to comment.