Hi, I applied a patch before to keep ssa_name information in struct iv. Seems this function somehow slipped away. Will apply it to trunk.
Thanks, bin 2015-06-26 Bin Cheng <bin.ch...@arm.com> * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name field in struct iv.
Index: gcc/tree-ssa-loop-ivopts.c =================================================================== --- gcc/tree-ssa-loop-ivopts.c (revision 224930) +++ gcc/tree-ssa-loop-ivopts.c (working copy) @@ -1390,10 +1396,6 @@ record_sub_use (struct ivopts_data *data, tree *us pre->next = use; } - /* To avoid showing ssa name in the dumps, if it was not reset by the - caller. */ - iv->ssa_name = NULL_TREE; - return use; }