From ea97330e037ac0bb8c8e3d7a608b8bc86c48e620 Mon Sep 17 00:00:00 2001 From: Jeehoon Kang Date: Sat, 6 Jun 2020 22:24:34 +0900 Subject: [PATCH] Hotfix deadcode elimination --- examples/deadcode/deadcode.input.ir | 4 ++-- examples/deadcode/deadcode.output.ir | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/deadcode/deadcode.input.ir b/examples/deadcode/deadcode.input.ir index 7bb805c..9b191d7 100644 --- a/examples/deadcode/deadcode.input.ir +++ b/examples/deadcode/deadcode.input.ir @@ -19,7 +19,7 @@ block b0: %b0:i0:i32 = add 100:i32 200:i32 %b0:i1:i32 = add %b0:i0:i32 300:i32 %b0:i2:i32 = add %b0:i1:i32 400:i32 - %b0:i3:unit = store %l1:i32 %b0:i0:i32 + %b0:i3:unit = store %b0:i0:i32 %l1:*i32 br undef:i1, b1(), b2() @@ -30,7 +30,7 @@ block b1: j b3() block b2: - %b2:i0:unit = store %l1:i32 42:i32 + %b2:i0:unit = store 42:i32 %l1:*i32 j b3() diff --git a/examples/deadcode/deadcode.output.ir b/examples/deadcode/deadcode.output.ir index 188e44e..48e14b1 100644 --- a/examples/deadcode/deadcode.output.ir +++ b/examples/deadcode/deadcode.output.ir @@ -16,7 +16,7 @@ init: block b0: %b0:i0:i32 = add 100:i32 200:i32 - %b0:i1:unit = store %l0:i32 %b0:i0:i32 + %b0:i1:unit = store %b0:i0:i32 %l0:*i32 br undef:i1, b1(), b2() @@ -26,7 +26,7 @@ block b1: j b3() block b2: - %b2:i0:unit = store %l0:i32 42:i32 + %b2:i0:unit = store 42:i32 %l0:*i32 j b3()