Commit 0385f644 by Kazu Hirata Committed by Kazu Hirata

tree-ssa-phiopt.c: Update copyright.

	* tree-ssa-phiopt.c: Update copyright.  Fix indentations.
	Remove trailing spaces.

From-SVN: r96078
parent 7c14c5fe
2005-03-08 Kazu Hirata <kazu@cs.umass.edu>
* tree-ssa-phiopt.c: Update copyright. Fix indentations.
Remove trailing spaces.
2005-03-07 Per Bothner <per@bothner.com>
* tree.h (DECL_IS_BUILTIN): Reverted my patch from earlier today.
......
/* Optimization of PHI nodes by converting them into straightline code.
Copyright (C) 2004 Free Software Foundation, Inc.
Copyright (C) 2004, 2005 Free Software Foundation, Inc.
This file is part of GCC.
......@@ -112,8 +112,8 @@ tree_ssa_phiopt (void)
basic_block bb;
bool removed_phis = false;
/* Search every basic block for COND_EXPR we may be able to optimize in reverse
order so we can find more. */
/* Search every basic block for COND_EXPR we may be able to optimize
in reverse order so we can find more. */
FOR_EACH_BB_REVERSE (bb)
{
tree cond_expr;
......@@ -122,7 +122,7 @@ tree_ssa_phiopt (void)
edge e1, e2;
cond_expr = last_stmt (bb);
/* Check to see if the last statement is a COND_EXPR */
/* Check to see if the last statement is a COND_EXPR. */
if (!cond_expr
|| TREE_CODE (cond_expr) != COND_EXPR)
continue;
......@@ -498,8 +498,8 @@ value_replacement (basic_block cond_bb, basic_block middle_bb,
static bool
abs_replacement (basic_block cond_bb, basic_block middle_bb,
basic_block phi_bb, edge e0 ATTRIBUTE_UNUSED, edge e1, tree phi,
tree arg0, tree arg1)
basic_block phi_bb, edge e0 ATTRIBUTE_UNUSED, edge e1,
tree phi, tree arg0, tree arg1)
{
tree result;
tree new, cond;
......@@ -623,7 +623,6 @@ abs_replacement (basic_block cond_bb, basic_block middle_bb,
if (negate)
{
/* Get the right BSI. We want to insert after the recently
added ABS_EXPR statement (which we know is the first statement
in the block. */
......@@ -631,7 +630,6 @@ abs_replacement (basic_block cond_bb, basic_block middle_bb,
result, build1 (NEGATE_EXPR, TREE_TYPE (lhs), lhs));
bsi_insert_after (&bsi, new, BSI_NEW_STMT);
}
SSA_NAME_DEF_STMT (result) = new;
......@@ -668,5 +666,3 @@ struct tree_opt_pass pass_phiopt =
| TODO_verify_flow | TODO_verify_stmts,
0 /* letter */
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment