[COMMITTED] Fold all statements in Ranger VRP.

Andrew MacLeod amacleod@redhat.com
Tue Oct 26 00:03:35 GMT 2021


This patch changes the ranger VRP pass to simplify all statements, not 
just the ones with ranges.  I believe Jeff had mentioned we were no 
longer doing this a while back.  Now we need it when running as the VRP2 
pass to satisfy the testcase: gcc.dg/wrapped-binop-simplify.c

This also requires a testcase adjustment since EVRP will now perform 
this simplification, and it causes a test looking for it in VRP1 to 
fail.  In that test, I simply disable evrp, and then add a duplicate of 
the test which then tests that EVRP also performs the optimization.

Bootstrapped on x86_64-pc-linux-gnu with no regressions. Pushed.

Andrew

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fold-all-statements-in-Ranger-VRP.patch
Type: text/x-patch
Size: 3493 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20211025/e1497389/attachment.bin>


More information about the Gcc-patches mailing list