Skip to content

Commit 5d8b15b

Browse files
committed
fix breakage
1 parent 9b6db61 commit 5d8b15b

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

BE/CodeGenX64/codegen.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ def main():
273273
if args.mode == "binary":
274274
# we need to legalize all functions first as this may change the signature
275275
# and fills in cpu reg usage which is used by subsequent interprocedural opts.
276+
legalize.OptimizeAll(unit, opt_stats)
276277
legalize.LegalizeAll(unit, opt_stats)
277278
RegAllocGlobal(unit, opt_stats)
278279
RegAllocLocal(unit, opt_stats)

BE/CodeGenX64/codegen_tool.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ int main(int argc, const char* argv[]) {
156156
}
157157

158158
if (sw_mode.Value() == "binary") {
159+
OptimizeAll(unit, false, log);
159160
LegalizeAll(unit, false, nullptr);
160161
RegAllocGlobal(unit, false, nullptr);
161162
RegAllocLocal(unit, false, nullptr);

0 commit comments

Comments
 (0)