From 2b6d7097c5370a0c7b8e2477d9fe26342b878c8b Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Tue, 17 Apr 2012 18:26:48 +0200 Subject: [PATCH] ia32: remove pointless downconv skips in gen_Add this fixes a bug, because match_arguments determines the operations mode by looking at the passed operands, so they must still have the original mode and not the mode after a skip_downconv. --- ir/be/ia32/ia32_transform.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/ir/be/ia32/ia32_transform.c b/ir/be/ia32/ia32_transform.c index b2784f80a..a3f10cab1 100644 --- a/ir/be/ia32/ia32_transform.c +++ b/ir/be/ia32/ia32_transform.c @@ -1344,9 +1344,6 @@ static ir_node *gen_Add(ir_node *node) ia32_mark_non_am(node); - op2 = ia32_skip_downconv(op2); - op1 = ia32_skip_downconv(op1); - /** * Rules for an Add: * 0. Immediate Trees (example Add(Symconst, Const) -> Const) -- 2.20.1