Commit 9e9eadd1 by Richard Biener Committed by Richard Biener

gimple-fold.c (fold_gimple_cond): Remove.

2015-07-29  Richard Biener  <rguenther@suse.de>

	* gimple-fold.c (fold_gimple_cond): Remove.
	(fold_stmt_1): Do not call it.

From-SVN: r226351
parent 4347617f
2015-07-29 Richard Biener <rguenther@suse.de>
* gimple-fold.c (fold_gimple_cond): Remove.
(fold_stmt_1): Do not call it.
2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
* config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
......
......@@ -529,33 +529,6 @@ fold_gimple_assign (gimple_stmt_iterator *si)
return NULL_TREE;
}
/* Attempt to fold a conditional statement. Return true if any changes were
made. We only attempt to fold the condition expression, and do not perform
any transformation that would require alteration of the cfg. It is
assumed that the operands have been previously folded. */
static bool
fold_gimple_cond (gcond *stmt)
{
tree result = fold_binary_loc (gimple_location (stmt),
gimple_cond_code (stmt),
boolean_type_node,
gimple_cond_lhs (stmt),
gimple_cond_rhs (stmt));
if (result)
{
STRIP_USELESS_TYPE_CONVERSION (result);
if (is_gimple_condexpr (result))
{
gimple_cond_set_condition_from_tree (stmt, result);
return true;
}
}
return false;
}
/* Replace a statement at *SI_P with a sequence of statements in STMTS,
adjusting the replacement stmts location and virtual operands.
......@@ -3711,10 +3684,6 @@ fold_stmt_1 (gimple_stmt_iterator *gsi, bool inplace, tree (*valueize) (tree))
break;
}
case GIMPLE_COND:
changed |= fold_gimple_cond (as_a <gcond *> (stmt));
break;
case GIMPLE_CALL:
changed |= gimple_fold_call (gsi, inplace);
break;
......
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