[4.5] Doloop improvement patches, 3/7
Bernd Schmidt
bernds_cb1@t-online.de
Thu Mar 5 21:31:00 GMT 2009
For unsigned comparisons, the two following expressions are equivalent:
A + B < A <=> A + B < B
If B is a constant, this is also equivalent to
A >= -B
The latter form is simpler and should be used if possible; this patch
teaches simplify_relational_operation_1 about it. This helps with
certain expressions seen when trying to prove facts about doloops.
Bernd
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: simplify-gtuleu.diff
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20090305/a2210bee/attachment.ksh>
More information about the Gcc-patches
mailing list