]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add an alternative testcase for PR 70740
authorAndrew Pinski <quic_apinski@quicinc.com>
Tue, 24 Sep 2024 02:17:42 +0000 (19:17 -0700)
committerAndrew Pinski <quic_apinski@quicinc.com>
Wed, 25 Sep 2024 15:17:14 +0000 (08:17 -0700)
commitd1e7f3a6c149b6fa058ce3083c36b8a5c404af5c
tree064c3d88dd15770579ca0596b2f35b67ff4168d2
parent6c5543d3d9c4bbcd19f0ae2b7ed7e523c978a9a8
Add an alternative testcase for PR 70740

While looking into improving phiprop, I noticed that
the current pr70740.c testcase was being optimized almost
all the way before phiprop because the addresses were considered
the same; the arrays were all zero in size.

This adds an alternative testcase which changes the array sizes to be 1
and phiprop can and will act on this testcase now and the fix which was
being tested is actually tested now.

Tested on x86_64-linux-gnu.

PR tree-optimization/70740

gcc/testsuite/ChangeLog:

* gcc.dg/torture/pr70740-1.c: New test.

Signed-off-by: Andrew Pinski <quic_apinski@quicinc.com>
gcc/testsuite/gcc.dg/torture/pr70740-1.c [new file with mode: 0644]