This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: conditionals
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Helge Bahmann <hcb at chaoticmind dot net>, gcc-help at gcc dot gnu dot org
- Date: Thu, 04 Dec 2003 13:23:42 -0600
- Subject: Re: conditionals
Hi Helge,
I don't think there's an "invariant test motion" optimization, which would consolidate the conditional code block bodies for you.
That could be useful in some cases.
Especially if your test for swap/don't swap was in a macro, and you really didn't have an easy means at the code level to pull the invariant test condition out of the macro -- so consolidating the conditional bodies by hand would be even more onerous.
--Eljay