Commit 450c1ffe by Walter Lee Committed by Walter Lee

tilegx.c (tilegx_expand_builtin): Set PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.

2014-01-25  Walter Lee  <walt@tilera.com>

            * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
            PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
            * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.

From-SVN: r207080
parent 317a951f
2014-01-25 Walter Lee <walt@tilera.com>
* config/tilegx/tilegx.c (tilegx_expand_builtin): Set
PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
* config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
* config/mips/constraints.md (kl): Delete.
......
......@@ -3570,6 +3570,12 @@ tilegx_expand_builtin (tree exp,
}
if (!pat)
return NULL_RTX;
/* If we are generating a prefetch, tell the scheduler not to move
it around. */
if (GET_CODE (pat) == PREFETCH)
PREFETCH_SCHEDULE_BARRIER_P (pat) = true;
emit_insn (pat);
if (nonvoid)
......
......@@ -3184,6 +3184,12 @@ tilepro_expand_builtin (tree exp,
}
if (!pat)
return NULL_RTX;
/* If we are generating a prefetch, tell the scheduler not to move
it around. */
if (GET_CODE (pat) == PREFETCH)
PREFETCH_SCHEDULE_BARRIER_P (pat) = true;
emit_insn (pat);
if (nonvoid)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment