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

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

            Backport from mainline
            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: r207101
This commit is contained in:
Walter Lee 2014-01-25 22:43:56 +00:00 committed by Walter Lee
parent 13d0888f30
commit f9116ed526
3 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,12 @@
2014-01-25 Walter Lee <walt@tilera.com>
Backport from mainline
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 Walter Lee <walt@tilera.com>
Backport from mainline

View File

@ -3500,6 +3500,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)

View File

@ -3167,6 +3167,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)