tree-scalar-evolution.c (analyzable_condition): Remove superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.

* tree-scalar-evolution.c (analyzable_condition): Remove
	superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.

From-SVN: r90528
This commit is contained in:
Diego Novillo 2004-11-12 13:28:16 +00:00 committed by Diego Novillo
parent 5fd4020042
commit 85022b3f54
2 changed files with 6 additions and 19 deletions

View File

@ -1,3 +1,8 @@
2004-11-12 Diego Novillo <dnovillo@redhat.com>
* tree-scalar-evolution.c (analyzable_condition): Remove
superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
2004-11-12 Ralf Corsepius <ralf.corsepius@rtems.org>
* config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):

View File

@ -959,9 +959,6 @@ analyzable_condition (tree expr)
switch (TREE_CODE (condition))
{
case SSA_NAME:
/* Volatile expressions are not analyzable. */
if (TREE_THIS_VOLATILE (SSA_NAME_VAR (condition)))
return false;
return true;
case LT_EXPR:
@ -970,22 +967,7 @@ analyzable_condition (tree expr)
case GE_EXPR:
case EQ_EXPR:
case NE_EXPR:
{
tree opnd0, opnd1;
opnd0 = TREE_OPERAND (condition, 0);
opnd1 = TREE_OPERAND (condition, 1);
if (TREE_CODE (opnd0) == SSA_NAME
&& TREE_THIS_VOLATILE (SSA_NAME_VAR (opnd0)))
return false;
if (TREE_CODE (opnd1) == SSA_NAME
&& TREE_THIS_VOLATILE (SSA_NAME_VAR (opnd1)))
return false;
return true;
}
return true;
default:
return false;