re PR middle-end/39326 (Segmentation fault with -O1, out of memory with -O2)
authorRichard Biener <rguenther@suse.de>
Thu, 21 Mar 2013 14:45:36 +0000 (14:45 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 21 Mar 2013 14:45:36 +0000 (14:45 +0000)
commite6647190dd8749f039605d04ce83a0d9e3cdcbc0
tree76acebdfa9a38d73f37da5a7421971cfba11424b
parent65074f54c54e765f5e66ecee17c4ad16f66c3780
re PR middle-end/39326 (Segmentation fault with -O1, out of memory with -O2)

2013-03-21  Richard Biener  <rguenther@suse.de>

PR tree-optimization/39326
* tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
(MEM_ANALYZABLE): Adjust.
(record_mem_ref_loc): Move bitmap ops ...
(gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
unanalyzable refs, do not record locations for it.
(analyze_memory_references): Allocate ref zero as shared
unanalyzable ref.
(refs_independent_p): Do not test for unanalyzed mems here.
(ref_indep_loop_p_1): Special-case disambiguation against
the unanalyzed ref.
(ref_indep_loop_p): Assert we are not queried for the
unanalyzed mem.

From-SVN: r196878
gcc/ChangeLog
gcc/tree-ssa-loop-im.c