diff options
author | Zdenek Dvorak <dvorakz@suse.cz> | 2005-03-14 17:21:16 +0100 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2005-03-14 16:21:16 +0000 |
commit | dcd6de6d69c1e59a28345db24de577f8e60fdbd0 (patch) | |
tree | 5260f74234c5264de982dff0fa79d5c8f864f9e6 /gcc/tree-ssa-operands.c | |
parent | 0e8c2b0d432304242caaf3d6415bdb887431cee5 (diff) | |
download | gcc-dcd6de6d69c1e59a28345db24de577f8e60fdbd0.zip gcc-dcd6de6d69c1e59a28345db24de577f8e60fdbd0.tar.gz gcc-dcd6de6d69c1e59a28345db24de577f8e60fdbd0.tar.bz2 |
builtin-attrs.def (ATTR_NOVOPS, [...]): New.
* builtin-attrs.def (ATTR_NOVOPS, ATTR_NOVOPS_LIST,
ATTR_PURE_NOTHROW_NOVOPS_LIST): New.
* builtins.def (ATTR_MATHFN_FPROUNDING): Use NOVOPS.
(BUILT_IN_PREFETCH): Set the NOVOPS attribute.
* c-common.c (handle_novops_attribute): New function.
(c_common_attribute_table): Add "no vops" entry.
* c-decl.c (merge_decls): Copy DECL_IS_NOVOPS.
* calls.c (flags_from_decl_or_type): Set ECF_NOVOPS.
* tree-ssa-operands.c (get_call_expr_operands): Do not
create virtual operands for calls with ECF_NOVOPS flag.
* tree.h (DECL_IS_NOVOPS): New macro.
(struct tree_decl): Add novops_flag.
(ECF_NOVOPS): New constant.
From-SVN: r96438
Diffstat (limited to 'gcc/tree-ssa-operands.c')
-rw-r--r-- | gcc/tree-ssa-operands.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c index 8db74e1..2a63d08 100644 --- a/gcc/tree-ssa-operands.c +++ b/gcc/tree-ssa-operands.c @@ -1529,7 +1529,9 @@ get_call_expr_operands (tree stmt, tree expr) computed. By not bothering with virtual operands for CALL_EXPRs we avoid adding superfluous virtual operands, which can be a significant compile time sink (See PR 15855). */ - if (aliases_computed_p && !bitmap_empty_p (call_clobbered_vars)) + if (aliases_computed_p + && !bitmap_empty_p (call_clobbered_vars) + && !(call_flags & ECF_NOVOPS)) { /* A 'pure' or a 'const' functions never call clobber anything. A 'noreturn' function might, but since we don't return anyway |