summaryrefslogtreecommitdiff
path: root/gcc/gimple.h
diff options
context:
space:
mode:
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-01 21:04:21 +0000
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-01 21:04:21 +0000
commita2e7e10a4a39bd41d2c3dd01e4b7d888a3a5d940 (patch)
treed013ef9887e11f42ac8c7621423db9dbfb851e6e /gcc/gimple.h
parente3c1d6a7f3d6aba0a858566d8b9656f6aa43a2eb (diff)
downloadgcc-a2e7e10a4a39bd41d2c3dd01e4b7d888a3a5d940.tar.gz
Revert
2011-11-29 Diego Novillo <dnovillo@google.com> * gimple.c (gimple_call_set_cannot_inline): Move from gimple.h. Update field call_stmt_cannot_inline_p from call graph edge, if needed. * gimple.h (gimple_call_set_cannot_inline): Move to gimple.c. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181893 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple.h')
-rw-r--r--gcc/gimple.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/gcc/gimple.h b/gcc/gimple.h
index df31bf3c23a..8536c70e87e 100644
--- a/gcc/gimple.h
+++ b/gcc/gimple.h
@@ -1035,7 +1035,6 @@ extern bool walk_stmt_load_store_ops (gimple, void *,
extern bool gimple_ior_addresses_taken (bitmap, gimple);
extern bool gimple_call_builtin_p (gimple, enum built_in_function);
extern bool gimple_asm_clobbers_memory_p (const_gimple);
-extern void gimple_call_set_cannot_inline (gimple, bool);
/* In gimplify.c */
extern tree create_tmp_var_raw (tree, const char *);
@@ -2344,6 +2343,19 @@ gimple_call_tail_p (gimple s)
}
+/* Set the inlinable status of GIMPLE_CALL S to INLINABLE_P. */
+
+static inline void
+gimple_call_set_cannot_inline (gimple s, bool inlinable_p)
+{
+ GIMPLE_CHECK (s, GIMPLE_CALL);
+ if (inlinable_p)
+ s->gsbase.subcode |= GF_CALL_CANNOT_INLINE;
+ else
+ s->gsbase.subcode &= ~GF_CALL_CANNOT_INLINE;
+}
+
+
/* Return true if GIMPLE_CALL S cannot be inlined. */
static inline bool