Commit 14886ab7 by Jeff Law Committed by Jeff Law

* tree-ssa-phiopt.c: Fix various formatting issues.

From-SVN: r81995
parent 81f4be3c
2004-05-18 Jeff Law <law@redhat.com>
* tree-ssa-phiopt.c: Fix various formatting issues.
2004-05-18 Steven Bosscher <stevenb@suse.de>
* config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
......
......@@ -78,7 +78,6 @@ tree_ssa_phiopt (void)
if (phi && TREE_CHAIN (phi) == NULL
&& PHI_NUM_ARGS (phi) == 2)
{
arg0 = PHI_ARG_DEF (phi, 0);
arg1 = PHI_ARG_DEF (phi, 1);
......@@ -98,10 +97,11 @@ tree_ssa_phiopt (void)
cleanup_tree_cfg ();
}
/* The function conditional_replacement does the main work of doing the conditional
replacement. Return true if the replacement is done. Otherwise return false.
bb is the basic block where the replacement is going to be done on. arg0
is argument 0 from the phi. Likewise for arg1. */
/* The function conditional_replacement does the main work of doing the
conditional replacement. Return true if the replacement is done.
Otherwise return false.
BB is the basic block where the replacement is going to be done on. ARG0
is argument 0 from PHI. Likewise for ARG1. */
static bool
conditional_replacement (basic_block bb, tree phi, tree arg0, tree arg1)
......@@ -177,7 +177,6 @@ conditional_replacement (basic_block bb, tree phi, tree arg0, tree arg1)
variable to optimize this case as it would likely create
non-gimple code when the condition was converted to the
result's type. */
cond = COND_EXPR_COND (last_stmt (cond_block));
result = PHI_RESULT (phi);
if (TREE_CODE (cond) != SSA_NAME
......@@ -216,7 +215,6 @@ conditional_replacement (basic_block bb, tree phi, tree arg0, tree arg1)
bsi_insert_after (&bsi, new1, BSI_NEW_STMT);
}
/* At this point we know we have a COND_EXPR with two successors.
One successor is BB, the other successor is an empty block which
falls through into BB.
......@@ -234,7 +232,6 @@ conditional_replacement (basic_block bb, tree phi, tree arg0, tree arg1)
false edge as the value zero. Note that those conditions are not
the same since only one of the outgoing edges from the COND_EXPR
will directly reach BB and thus be associated with an argument. */
if ((PHI_ARG_EDGE (phi, 0) == true_edge && integer_onep (arg0))
|| (PHI_ARG_EDGE (phi, 0) == false_edge && integer_zerop (arg0))
|| (PHI_ARG_EDGE (phi, 1) == true_edge && integer_onep (arg1))
......
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