re PR tree-optimization/65388 (Wrong comparison in same_succ_def::equal() tree-ssa...
authorMarek Polacek <polacek@redhat.com>
Wed, 11 Mar 2015 20:36:56 +0000 (20:36 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 11 Mar 2015 20:36:56 +0000 (20:36 +0000)
PR tree-optimization/65388
* tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.

From-SVN: r221359

gcc/ChangeLog
gcc/tree-ssa-tail-merge.c

index 6512b30fa444a8816d2bd865df6f6a90a95b8f11..28979d58b479bef656a986ce990d06fa0a878b0e 100644 (file)
@@ -1,3 +1,8 @@
+2015-03-11  Marek Polacek  <polacek@redhat.com>
+
+       PR tree-optimization/65388
+       * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
+
 2015-03-10  Georg-Johann Lay  <avr@gjlay.de>
 
        PR target/65296
index 5d47813061f7bb4cfee5d7cec57d9c26baf8acb3..2c48cb619c789bb3c55dce7cf2d7b26b1f3d6471 100644 (file)
@@ -587,7 +587,7 @@ same_succ_def::equal (const value_type *e1, const compare_type *e2)
   if (!inverse_flags (e1, e2))
     {
       for (i = 0; i < e1->succ_flags.length (); ++i)
-       if (e1->succ_flags[i] != e1->succ_flags[i])
+       if (e1->succ_flags[i] != e2->succ_flags[i])
          return 0;
     }