This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Optimize certain end of loop conditions into min/max operation
- From: Jeff Law <law at redhat dot com>
- To: Michael Collison <michael dot collison at linaro dot org>, Richard Biener <richard dot guenther at gmail dot com>
- Cc: gcc Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 31 Jul 2015 12:27:58 -0600
- Subject: Re: [PATCH] Optimize certain end of loop conditions into min/max operation
- Authentication-results: sourceware.org; auth=none
- References: <55B5A884 dot 4060105 at linaro dot org> <CAFiYyc1ObfTFaChzLiAezxEzVziVFnDzCTBhvS0v975-xXRosw at mail dot gmail dot com> <55B65A4B dot 3050705 at redhat dot com> <CAFiYyc2J8zo6cVVSj-06+DHoELacugJTeTz1ezqgva2cD44hYA at mail dot gmail dot com> <55BBA052 dot 2060900 at redhat dot com> <55BBBBE6 dot 2070207 at linaro dot org>
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