From cfbf78c0ab100b949a3c44bbff386ac65ba3f0fd Mon Sep 17 00:00:00 2001 From: walt Date: Sat, 25 Jan 2014 20:23:42 +0000 Subject: 2014-01-25 Walter Lee * config/tilegx/tilegx.c (tilegx_expand_builtin): Set PREFETCH_SCHEDULE_BARRIER_P to true for prefetches. * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@207080 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config/tilegx/tilegx.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gcc/config/tilegx') diff --git a/gcc/config/tilegx/tilegx.c b/gcc/config/tilegx/tilegx.c index 85a46f798e1..c1686213f9f 100644 --- a/gcc/config/tilegx/tilegx.c +++ b/gcc/config/tilegx/tilegx.c @@ -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) -- cgit v1.2.1