tree-optimization/97135 - fix dependence check in store-motion
authorRichard Biener <rguenther@suse.de>
Mon, 21 Sep 2020 12:04:25 +0000 (14:04 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 21 Sep 2020 12:06:36 +0000 (14:06 +0200)
commit0df746afc50a47d1eb53a401e017c4373cf05641
tree8854bff3684494b1d8bf4e6c1dfba501017766e2
parentd726ecd9554a805d4a5e044cb21ca23a7f7ca49f
tree-optimization/97135 - fix dependence check in store-motion

The following fixes a dependence check where in the particular place
we cannot ignore self-dependences.

2020-09-21  Richard Biener  <rguenther@suse.de>

PR tree-optimization/97135
* tree-ssa-loop-im.c (sm_seq_push_down): Do not ignore
self-dependences.

* gcc.dg/torture/pr97135.c: New testcase.
gcc/testsuite/gcc.dg/torture/pr97135.c [new file with mode: 0644]
gcc/tree-ssa-loop-im.c