[COMMITTED, IA-64] doloop optimization across calls
Jim Wilson
wilson@codesourcery.com
Tue Apr 20 01:24:00 GMT 2010
I noticed this while working on PR43520. Doloop by default does not
optimize loops with call insns. However, on IA-64, the loop counter
register is call saved, so we can and should optimize such loops. This
is fixed by replacing the default TARGET_INVALID_WITHIN_DOLOOP hook with
the null one, just like is already done in the s390 port.
This was tested with an ia64-linux C and C++ bootstrap and make check.
There were no regressions. This was also tested by hand on some small
testcases to verify that it was doing what I expected.
I've checked in the patch.
Jim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ia64-doloop.patch
Type: text/x-patch
Size: 641 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100420/6e7757ec/attachment.bin>
More information about the Gcc-patches
mailing list