diff options
author | Richard Biener <rguenther@suse.de> | 2023-10-23 11:25:17 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2023-10-23 12:32:00 +0200 |
commit | d96bd4aade170fcd86f5f09b68b770dde798e631 (patch) | |
tree | 7c279d74aa1be4649df8b1bcf93af9b2a22a4cd7 /gcc/tree-vect-loop-manip.cc | |
parent | 0c4bd1321a6def5eb44c530e83b01a415633b660 (diff) | |
download | gcc-d96bd4aade170fcd86f5f09b68b770dde798e631.zip gcc-d96bd4aade170fcd86f5f09b68b770dde798e631.tar.gz gcc-d96bd4aade170fcd86f5f09b68b770dde798e631.tar.bz2 |
tree-optimization/111917 - bougs IL after guard hoisting
The unswitching code to hoist guards inserts conditions in wrong
places. The following fixes this, simplifying code.
PR tree-optimization/111917
* tree-ssa-loop-unswitch.cc (hoist_guard): Always insert
new conditional after last stmt.
* gcc.dg/torture/pr111917.c: New testcase.
Diffstat (limited to 'gcc/tree-vect-loop-manip.cc')
0 files changed, 0 insertions, 0 deletions