diff options
author | Richard Biener <rguenther@suse.de> | 2024-06-22 14:59:09 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2024-06-23 11:23:48 +0200 |
commit | 8a1795bddcd34284936af4706f762d89c60fc69c (patch) | |
tree | 6e00577b6d1bf27c58643ca03466859c657c5c92 /gcc/dwarf2codeview.h | |
parent | 4c957d7ba84d8bbce6e778048f38e92ef71806c8 (diff) | |
download | gcc-8a1795bddcd34284936af4706f762d89c60fc69c.zip gcc-8a1795bddcd34284936af4706f762d89c60fc69c.tar.gz gcc-8a1795bddcd34284936af4706f762d89c60fc69c.tar.bz2 |
tree-optimization/115579 - fix wrong code with store-motion
The recent change to relax store motion for variables that cannot have
store data races broke the optimization to share flag vars for stores
that all happen in the same single BB. The following fixes this.
PR tree-optimization/115579
* tree-ssa-loop-im.cc (execute_sm): Return the auxiliary data
created.
(hoist_memory_references): Record the flag var that's eventually
created and re-use it when all stores are in the same BB.
* gcc.dg/pr115579.c: New testcase.
Diffstat (limited to 'gcc/dwarf2codeview.h')
0 files changed, 0 insertions, 0 deletions