------- Comment #3 from steven at gcc dot gnu dot org 2005-12-03 15:46 -------
With a minor hack, we optimize the test case in dom3:
Index: tree-ssa-dom.c
===================================================================
--- tree-ssa-dom.c (revision 107822)
+++ tree-ssa-dom.c (working copy)
@@ -2776,7 +2776,9 @@ cprop_operand (tree stmt, use_operand_p
/* If the operand has a known constant value or it is known to be a
copy of some other variable, use the value or copy stored in
CONST_AND_COPIES. */
- val = SSA_NAME_VALUE (op);
+ val = op;
+ while (TREE_CODE (val) == SSA_NAME && SSA_NAME_VALUE (val))
+ val = SSA_NAME_VALUE (val);
if (val && val != op && TREE_CODE (val) != VALUE_HANDLE)
{
tree op_type, val_type;
Jeff, thoughts?
--
steven at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2005-12-03 15:46:50
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25243