This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] combine: Special handling for conditional refs when creating log links
On Fri, May 7, 2010 at 9:55 AM, Steven Bosscher <stevenb.gcc@gmail.com> wrote:
> If I understand the spu backend correctly, it may create COND_EXEC
> insns from builtins, i.e. before reload, see spu-builtins.md. They
> compare a "normal" register (not predicate registers like on ia64) for
> the COND_EXEC_TEST. See set_intr_cc.
No, that pattern is never created before reload. In fact it should
have a * in front of the name to make sure it will never be created by
before reload. That pattern is only created by ifcvt after reload. I
added those two patterns to optimize turning on/off interrupts when it
is done conditionally; turning off/on interrupts require a jump on the
spu targets. Combing the two jumps is what the patterns are trying to
do.
Thanks,
Andrew Pinski