On 9/2/26 6:07 AM, Aldy Hernandez wrote:
r13-1924-gb9da686470d1c2 avoided threading to probably never executed
edges but landed without a testcase. Add two, retroactively.
[This is all AI generated. I used it to to go back in time, create
testcases from the original preprocessed source code, further reduce
it with cvise, and then distill it further to create a minimal
reproducer for the concept, not the warning. This allows us to keep
an reduction of the original testcase, plus a conceptual tiny testcase
to make sure we don't regress going forward.]
Both FAIL before r13-1924 and PASS with it.
Assisted-by: Claude Fable 5 (Anthropic)
OK?
gcc/testsuite/ChangeLog:
PR tree-optimization/106495
PR tree-optimization/126906
* gcc.dg/tree-ssa/pr106495-1.c: New test.
* gcc.dg/tree-ssa/pr106495-2.c: New test.
OK for the trunk. For once the verbosity of an LLM is useful :-) I
might disagree with the "must not be threaded", it's more of a we don't
want to thread because it triggers hard to fix diagnostics on a likely
unreachable path, but it's not worth editing.
Jeff