tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix typo from commit r236875.
authorKugan Vivekanandarajah <kuganv@linaro.org>
Mon, 30 May 2016 11:01:06 +0000 (11:01 +0000)
committerKugan Vivekanandarajah <kugan@gcc.gnu.org>
Mon, 30 May 2016 11:01:06 +0000 (11:01 +0000)
gcc/ChangeLog:

2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>

* tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix typo from commit
r236875. Corrected oe3 to oe2 as obvious.

From-SVN: r236877

gcc/ChangeLog
gcc/tree-ssa-reassoc.c

index e328b4112f393db654542eb43426c980f0ad898e..4c3a0314490273c9819c38f210d995bf4e69e341 100644 (file)
@@ -1,3 +1,8 @@
+2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
+
+       * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
+       r236875. Corrected oe3 to oe2 as obvious.
+
 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
 
        PR middle-end/71269
index 9c06ca0374680bf9d118dd646ee44f31503d3650..430bcc8eb40ca2fee5d6053b3eac85986afa7659 100644 (file)
@@ -3759,7 +3759,7 @@ swap_ops_for_binary_stmt (vec<operand_entry *> ops,
           || (stmt && is_phi_for_stmt (stmt, oe2->op)
               && !is_phi_for_stmt (stmt, oe1->op)
               && !is_phi_for_stmt (stmt, oe3->op)))
-    std::swap (*oe1, *oe3);
+    std::swap (*oe1, *oe2);
 }
 
 /* If definition of RHS1 or RHS2 dominates STMT, return the later of those