aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-12-12 14:01:47 +0100
committerRichard Biener <rguenther@suse.de>2023-12-12 15:13:15 +0100
commit878cb5acf0c499702ffd315e273f55e8bd0970b8 (patch)
tree07d35ca985dce2f1cca214fbd366b2161bc76c66 /gcc/c-family
parentdabd94da0c78f4beb0c2c25f38ab6de2d8417497 (diff)
downloadgcc-878cb5acf0c499702ffd315e273f55e8bd0970b8.zip
gcc-878cb5acf0c499702ffd315e273f55e8bd0970b8.tar.gz
gcc-878cb5acf0c499702ffd315e273f55e8bd0970b8.tar.bz2
tree-optimization/112961 - include latch in if-conversion CSE
The following makes sure to also process the (empty) latch when performing CSE on the if-converted loop body. That's important to get all uses of copies propagated out on the backedge as well. To avoid CSE on the PHI nodes itself which is prohibitive (see PR90402) this temporarily adds a fake entry edge to the loop. PR tree-optimization/112961 * tree-if-conv.cc (tree_if_conversion): Instead of excluding the latch block from VN, add a fake entry edge. * g++.dg/vect/pr112961.cc: New testcase.
Diffstat (limited to 'gcc/c-family')
0 files changed, 0 insertions, 0 deletions