Commit f3976023 by Bin Cheng Committed by Bin Cheng

tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when TMR_INDEX is non-NULL.

	* tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
	TMR_INDEX is non-NULL.

From-SVN: r236593
parent 18b54004
2016-05-23 Bin Cheng <bin.cheng@arm.com>
* tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
TMR_INDEX is non-NULL.
2016-05-23 Richard Biener <rguenther@suse.de> 2016-05-23 Richard Biener <rguenther@suse.de>
PR tree-optimization/71230 PR tree-optimization/71230
......
...@@ -877,6 +877,10 @@ copy_ref_info (tree new_ref, tree old_ref) ...@@ -877,6 +877,10 @@ copy_ref_info (tree new_ref, tree old_ref)
&& TREE_CODE (old_ref) == MEM_REF && TREE_CODE (old_ref) == MEM_REF
&& !(TREE_CODE (new_ref) == TARGET_MEM_REF && !(TREE_CODE (new_ref) == TARGET_MEM_REF
&& (TMR_INDEX2 (new_ref) && (TMR_INDEX2 (new_ref)
/* TODO: Below conditions can be relaxed if TMR_INDEX
is an indcution variable and its initial value and
step are aligned. */
|| (TMR_INDEX (new_ref) && !TMR_STEP (new_ref))
|| (TMR_STEP (new_ref) || (TMR_STEP (new_ref)
&& (TREE_INT_CST_LOW (TMR_STEP (new_ref)) && (TREE_INT_CST_LOW (TMR_STEP (new_ref))
< align))))) < align)))))
......
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