tree-optimization/101025 - fix store-motion dependence checking
authorRichard Biener <rguenther@suse.de>
Fri, 11 Jun 2021 10:06:08 +0000 (12:06 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 11 Jun 2021 16:12:30 +0000 (18:12 +0200)
commitb8b80b8aa3d9a7abbcb59b651ea5e84c2ea12d0b
tree14fcaf112b2d51e697765d7441b197030daf0ea7
parentc5ed0148347beea1bd34795de146adddd2454c36
tree-optimization/101025 - fix store-motion dependence checking

This plugs a hole in store-motion where it fails to perform dependence
checking on conditionally executed but not store-motioned refs.

2021-06-11  Richard Biener  <rguenther@suse.de>

PR tree-optimization/101025
* tree-ssa-loop-im.c (sm_seq_valid_bb): Make sure to process
all refs that require dependence checking.

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