Commit 8ab1d9d7 by Richard Biener Committed by Richard Biener

re PR middle-end/68221 (libgomp reduction-11/12 failures)

2015-11-24  Richard Biener  <rguenther@suse.de>

	PR middle-end/68221
	* tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
	use mem_ref_offset.

From-SVN: r230793
parent c4833de1
2015-11-24 Richard Biener <rguenther@suse.de>
PR middle-end/68221
* tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
use mem_ref_offset.
2015-11-24 Segher Boessenkool <segher@kernel.crashing.org> 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
PR rtl-optimization/68381 PR rtl-optimization/68381
...@@ -750,8 +750,11 @@ copy_reference_ops_from_ref (tree ref, vec<vn_reference_op_s> *result) ...@@ -750,8 +750,11 @@ copy_reference_ops_from_ref (tree ref, vec<vn_reference_op_s> *result)
case MEM_REF: case MEM_REF:
/* The base address gets its own vn_reference_op_s structure. */ /* The base address gets its own vn_reference_op_s structure. */
temp.op0 = TREE_OPERAND (ref, 1); temp.op0 = TREE_OPERAND (ref, 1);
if (tree_fits_shwi_p (TREE_OPERAND (ref, 1))) {
temp.off = tree_to_shwi (TREE_OPERAND (ref, 1)); offset_int off = mem_ref_offset (ref);
if (wi::fits_shwi_p (off))
temp.off = off.to_shwi ();
}
temp.clique = MR_DEPENDENCE_CLIQUE (ref); temp.clique = MR_DEPENDENCE_CLIQUE (ref);
temp.base = MR_DEPENDENCE_BASE (ref); temp.base = MR_DEPENDENCE_BASE (ref);
temp.reverse = REF_REVERSE_STORAGE_ORDER (ref); temp.reverse = REF_REVERSE_STORAGE_ORDER (ref);
......
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