]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/110991 - unroll size estimate after vectorization
authorRichard Biener <rguenther@suse.de>
Mon, 14 Aug 2023 07:31:18 +0000 (09:31 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 15 Aug 2023 09:07:25 +0000 (11:07 +0200)
commitbcdbedb3e6083ad01d844ed97cf19645c1ef6568
tree64ead9d054f643f819784d23c8cc04a780e97ab7
parentecb95399f43873e1f34119ac260bbea2ef358e53
tree-optimization/110991 - unroll size estimate after vectorization

The following testcase shows that we are bad at identifying inductions
that will be optimized away after vectorizing them because SCEV doesn't
handle vectorized defs.  The following rolls a simpler identification
of SSA cycles covering a PHI and an assignment with a binary operator
with a constant second operand.

PR tree-optimization/110991
* tree-ssa-loop-ivcanon.cc (constant_after_peeling): Handle
VIEW_CONVERT_EXPR <op>, handle more simple IV-like SSA cycles
that will end up constant.

* gcc.dg/tree-ssa/cunroll-16.c: New testcase.
gcc/testsuite/gcc.dg/tree-ssa/cunroll-16.c [new file with mode: 0644]
gcc/tree-ssa-loop-ivcanon.cc