aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple.c
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2011-12-01 16:04:21 -0500
committerDiego Novillo <dnovillo@gcc.gnu.org>2011-12-01 16:04:21 -0500
commitd4e5417a2f653e768ea15d22aabb99b9fd1e31a4 (patch)
treed013ef9887e11f42ac8c7621423db9dbfb851e6e /gcc/gimple.c
parent0e485da09d9d70c0e97afbba1760e55503534c8b (diff)
downloadgcc-d4e5417a2f653e768ea15d22aabb99b9fd1e31a4.zip
gcc-d4e5417a2f653e768ea15d22aabb99b9fd1e31a4.tar.gz
gcc-d4e5417a2f653e768ea15d22aabb99b9fd1e31a4.tar.bz2
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. From-SVN: r181893
Diffstat (limited to 'gcc/gimple.c')
-rw-r--r--gcc/gimple.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/gcc/gimple.c b/gcc/gimple.c
index d27e94b..071c651 100644
--- a/gcc/gimple.c
+++ b/gcc/gimple.c
@@ -5558,34 +5558,4 @@ gimple_asm_clobbers_memory_p (const_gimple stmt)
return false;
}
-
-
-/* Set the inlinable status of GIMPLE_CALL S to INLINABLE_P. */
-
-void
-gimple_call_set_cannot_inline (gimple s, bool inlinable_p)
-{
- bool prev_inlinable_p;
-
- GIMPLE_CHECK (s, GIMPLE_CALL);
-
- prev_inlinable_p = gimple_call_cannot_inline_p (s);
-
- if (inlinable_p)
- s->gsbase.subcode |= GF_CALL_CANNOT_INLINE;
- else
- s->gsbase.subcode &= ~GF_CALL_CANNOT_INLINE;
-
- /* If we have changed the inlinable attribute, and there is a call
- graph edge going out of this statement, update its inlinable
- attribute as well. */
- if (current_function_decl && prev_inlinable_p != inlinable_p)
- {
- struct cgraph_node *n = cgraph_get_node (current_function_decl);
- struct cgraph_edge *e = cgraph_edge (n, s);
- if (e)
- e->call_stmt_cannot_inline_p = inlinable_p;
- }
-}
-
#include "gt-gimple.h"