fix reassoc cut&pasto

for  gcc/ChangeLog

	* tree-ssa-reassoc.c (is_reassociable_op): Fix cut&pasto.

From-SVN: r263759
This commit is contained in:
Alexandre Oliva 2018-08-22 03:47:48 +00:00 committed by Alexandre Oliva
parent ecd0638398
commit 141f2b50ce
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2018-08-22 Alexandre Oliva <aoliva@redhat.com>
* tree-ssa-reassoc.c (is_reassociable_op): Fix cut&pasto.
2018-08-21 Marek Polacek <polacek@redhat.com>
PR c++/86981, Implement -Wpessimizing-move.

View File

@ -618,7 +618,7 @@ is_reassociable_op (gimple *stmt, enum tree_code code, struct loop *loop)
&& has_single_use (gimple_assign_lhs (stmt)))
{
tree rhs1 = gimple_assign_rhs1 (stmt);
tree rhs2 = gimple_assign_rhs1 (stmt);
tree rhs2 = gimple_assign_rhs2 (stmt);
if (TREE_CODE (rhs1) == SSA_NAME
&& SSA_NAME_OCCURS_IN_ABNORMAL_PHI (rhs1))
return false;