From a5ee46bc858991c3ebe1abac680e0fe862dc98a1 Mon Sep 17 00:00:00 2001
From: Changpeng Fang <chfang@pathscale.(none)>
Date: Tue, 15 Jun 2010 14:34:09 -0700
Subject: [PATCH] pr44503 builtin_prefetch does not change control flow
*gcc/tree-cfg.c (is_ctrl_altering_stmt): Return false if
the gimple_call is _builtin_prefetch.
---
gcc/tree-cfg.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
@@ -2259,6 +2259,10 @@ is_ctrl_altering_stmt (gimple t)
{
int flags = gimple_call_flags (t);
+ /* BUILT_IN_PREFETCH would never alter the control flow. */
+ if (gimple_call_builtin_p (t, BUILT_IN_PREFETCH))
+ return false;
+
/* A non-pure/const call alters flow control if the current
function has nonlocal labels. */
if (!(flags & (ECF_CONST | ECF_PURE)) && cfun->has_nonlocal_label)
--
1.6.3.3