[PATCH] Optimize certain end of loop conditions into min/max operation
Jeff Law
law@redhat.com
Fri Jul 31 19:10:00 GMT 2015
On 07/31/2015 12:18 PM, Michael Collison wrote:
> Hi Jeff,
>
> Yes I will create a test case. I'm not quite sure what to check for even
> in the machine dependent test case. It's quite possible for the
> instructions that are generated to change over time.
I think we're going to want to look at the gimple IR and search for the
MIN/MAX expressions rather than the instructions. Given we don't know
where the transformation is going to land (yet), you can probably start
with -fdump-tree-optimized and scanning the .optimized dump.
We can still do that and have the test be target specific.
jeff
More information about the Gcc-patches
mailing list