]> gcc.gnu.org Git - gcc.git/commit
tree-optimization/108821 - store motion and volatiles
authorRichard Biener <rguenther@suse.de>
Fri, 17 Feb 2023 11:36:44 +0000 (12:36 +0100)
committerRichard Biener <rguenther@suse.de>
Fri, 17 Feb 2023 11:36:44 +0000 (12:36 +0100)
commit4c4f0f7acd6b96ee744ef598cbea5c7046a33654
tree8579b56b574593abadfa1d3c6862dbe5524fd964
parent417e95263ca4d7a6623783ad664cf6305d8d3fad
tree-optimization/108821 - store motion and volatiles

The following fixes store motion to not re-issue volatile stores
to preserve TBAA behavior since that will result in the number
of volatile accesses changing.

PR tree-optimization/108821
* tree-ssa-loop-im.cc (sm_seq_valid_bb): We can also not
move volatile accesses.

* gcc.dg/tree-ssa/ssa-lim-24.c: New testcase.
gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-24.c [new file with mode: 0644]
gcc/tree-ssa-loop-im.cc
This page took 0.072583 seconds and 5 git commands to generate.