From 05617faf837d340c4397dd706609940bce7fa8ba Mon Sep 17 00:00:00 2001
From: LeoDreamer <2200010825@stu.pku.edu.cn>
Date: Wed, 27 Nov 2024 23:51:40 +0800
Subject: [PATCH] close all the opt, let me pass pls

---
 src/main.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index c74a750..5baba9a 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -42,14 +42,14 @@ fn main() -> Result<(), Error> {
 
     // frontend
     let mut ir = build_ir(ast).map_err(Error::Ir)?;
-    ir = opt_ir(ir);
+    // ir = opt_ir(ir);
 
     match args.mode {
         Mode::Koopa => emit_ir(&mut ir, args.output).map_err(Error::Io)?,
         _ => {
             // backend
             let mut asm = build_asm(ir).map_err(Error::Asm)?;
-            asm = opt_asm(asm);
+            // asm = opt_asm(asm);
             emit_asm(asm, args.output).map_err(Error::Io)?
         }
     }
-- 
GitLab