diff options
author | Richard Biener <rguenther@suse.de> | 2024-05-27 09:40:19 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2024-05-27 12:45:35 +0200 |
commit | f9fbb47987efc8b5261e4cc36613c928a8693493 (patch) | |
tree | dead92a1281a37db15cfad5fe697772bf9aaf758 /gcc/tree-vect-loop.cc | |
parent | f6c5f836df44196a7cd3b206af5bb29df6c7c225 (diff) | |
download | gcc-f9fbb47987efc8b5261e4cc36613c928a8693493.zip gcc-f9fbb47987efc8b5261e4cc36613c928a8693493.tar.gz gcc-f9fbb47987efc8b5261e4cc36613c928a8693493.tar.bz2 |
tree-optimization/115220 - fix store sinking virtual operand constraints
The following makes sure the virtual operand updating when sinking
stores works for the case we ignore paths to kills. The final
sink location might not post-dominate the original stmt location
which would require inserting of a virtual PHI which we do not support.
PR tree-optimization/115220
PR tree-optimization/115226
* tree-ssa-sink.cc (statement_sink_location): When ignoring
paths to kills when sinking stores make sure the final
sink location is still post-dominated by the original one.
Otherwise we'd need to insert a PHI node to merge virtual operands.
* gcc.dg/torture/pr115220.c: New testcase.
* gcc.dg/torture/pr115226.c: New testcase.
Diffstat (limited to 'gcc/tree-vect-loop.cc')
0 files changed, 0 insertions, 0 deletions