- BugFix: get the mode from Cmp operand when calculating the negated pnc
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 11 Nov 2008 15:59:10 +0000 (15:59 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 11 Nov 2008 15:59:10 +0000 (15:59 +0000)
[r23575]

ir/ana/irconsconfirm.c

index de47534..8623e9a 100644 (file)
@@ -397,6 +397,7 @@ static void insert_Confirm_in_block(ir_node *block, void *env) {
 
                if (get_Proj_proj(proj) != pn_Cond_true) {
                        /* it's the false branch */
+                       mode = get_irn_mode(get_Cmp_left(cmp));
                        pnc = get_negated_pnc(pnc, mode);
                }
                DB((dbg, LEVEL_2, "At %+F using %+F Confirm %=\n", block, cmp, pnc));