This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]