re PR rtl-optimization/56117 (ICE: in cselib_subst_to_values, at cselib.c:1853 with...
authorJakub Jelinek <jakub@redhat.com>
Mon, 28 Jan 2013 16:50:22 +0000 (17:50 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 28 Jan 2013 16:50:22 +0000 (17:50 +0100)
commitdb1fb332e127cef6bcbfd861e597ddb84505210f
tree0db0e0a407245a418257e3f7b74f6a99171a2878
parent16917761718f236f6e40a043a64c746f174870ef
re PR rtl-optimization/56117 (ICE: in cselib_subst_to_values, at cselib.c:1853 with -O2 -fsched2-use-superblocks and __builtin_prefetch())

PR rtl-optimization/56117
* sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
call cselib_lookup_from_insn on the MEM before calling
add_insn_mem_dependence.

* gcc.dg/pr56117.c: New test.

From-SVN: r195513
gcc/ChangeLog
gcc/sched-deps.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr56117.c [new file with mode: 0644]