Patchwork [tree-optimization] : Avoid !=/== 0/1 comparisons for boolean-typed argument

login
register
mail settings
Submitter Kai Tietz
Date Aug. 2, 2011, 7:32 p.m.
Message ID <CAEwic4ajBuyMioHHNbxP+PfAekknMUZYYKO-nHVVfnjXbJYh5Q@mail.gmail.com>
Download mbox | patch
Permalink /patch/107986/
State New
Headers show

Comments

Kai Tietz - Aug. 2, 2011, 7:32 p.m.
Sorry, had a pasto in testcase.

Fixed at rev. 166205

2011-08-02  Kai Tietz  <ktietz@redhat.com>

	PR middle-end/49947
	* gcc.dg/tree-ssa/forwprop-15.c


Tested on x86_64-pc-linux-gnu.  Applied as obvious fix.

Regards,
Kai

Patch

Index: gcc.dg/tree-ssa/forwprop-15.c
===================================================================
--- gcc.dg/tree-ssa/forwprop-15.c       (revision 177170)
+++ gcc.dg/tree-ssa/forwprop-15.c       (working copy)
@@ -2,7 +2,7 @@ 
 /* { dg-options "-O2 -fdump-tree-forwprop1" }  */

 _Bool
-foo (_Bool a, _Bool b, _Bool c
+foo (_Bool a, _Bool b, _Bool c)
 {
   _Bool r1 = a == 0 & b != 0;
   _Bool r2 = b != 0 & c == 0;