From 5de40da367d203db38c2af05d3ab9f1b093bbdbb Mon Sep 17 00:00:00 2001 From: kugan Date: Mon, 30 May 2016 11:01:06 +0000 Subject: [PATCH] gcc/ChangeLog: 2016-05-30 Kugan Vivekanandarajah * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix typo from commit r236875. Corrected oe3 to oe2 as obvious. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@236877 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/tree-ssa-reassoc.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e328b4112f3..4c3a0314490 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2016-05-30 Kugan Vivekanandarajah + * 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 + PR middle-end/71269 PR middle-end/71252 * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so diff --git a/gcc/tree-ssa-reassoc.c b/gcc/tree-ssa-reassoc.c index 9c06ca03746..430bcc8eb40 100644 --- a/gcc/tree-ssa-reassoc.c +++ b/gcc/tree-ssa-reassoc.c @@ -3759,7 +3759,7 @@ swap_ops_for_binary_stmt (vec 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 -- 2.11.4.GIT