]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add a few testcases for fix missed optimization regressions
authorAndrew Pinski <quic_apinski@quicinc.com>
Sat, 13 Jan 2024 04:24:34 +0000 (20:24 -0800)
committerAndrew Pinski <quic_apinski@quicinc.com>
Sat, 13 Jan 2024 04:38:06 +0000 (20:38 -0800)
commit34a827039fabcf24ce78da25984a1cc8be7ca2c3
treeb97d2f63767640f82a01ab3949c5ae65b3f81c74
parentac1a399bf61b04845f5d6fc34e4b7a4db2bc5760
Add a few testcases for fix missed optimization regressions

Adds a few new testcases for some missed optimization regressions.
The analysis on how each should be optimized is in the testcases
themselves (and in the bug report).

Committed as obvious after running the testsuite to make sure they pass.

PR tree-optimization/107823
PR tree-optimization/110768
PR tree-optimization/110941
PR tree-optimization/110450
PR tree-optimization/110841

gcc/testsuite/ChangeLog:

* gcc.dg/tree-ssa/ssa-thread-22.c: New test.
* gcc.dg/tree-ssa/vrp-loop-1.c: New test.
* gcc.dg/tree-ssa/vrp-loop-2.c: New test.
* gcc.dg/tree-ssa/vrp-unreachable-1.c: New test.
* gcc.dg/tree-ssa/vrp-unreachable-2.c: New test.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/testsuite/gcc.dg/tree-ssa/ssa-thread-22.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/vrp-loop-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/vrp-loop-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/vrp-unreachable-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/tree-ssa/vrp-unreachable-2.c [new file with mode: 0644]