summaryrefslogtreecommitdiff
path: root/gcc/rtl.def
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1998-06-30 16:19:11 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>1998-06-30 16:19:11 +0000
commit6fa987837c0861b7a44ae427629f5a5920acd3b9 (patch)
tree5176e675ace86f9c1b331ce84ab33709cfe7e130 /gcc/rtl.def
parente26bf699f36d3cea8c05039404e98280bddc389d (diff)
downloadgcc-6fa987837c0861b7a44ae427629f5a5920acd3b9.tar.gz
* rtl.def (CONSTANT_P_RTX): New.
* rtl.h (CONSTANT_P): Recognize it. * cse.c (fold_rtx): Eliminate it. * expr.c (can_handle_constant_p): New variable. (init_expr_once): Initialize it. (expand_builtin): Generate CONSTANT_P_RTX if the expression is not immediately recognizable as a constant. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20846 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/rtl.def')
-rw-r--r--gcc/rtl.def5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/rtl.def b/gcc/rtl.def
index a00d3f1d7c5..1e45157b450 100644
--- a/gcc/rtl.def
+++ b/gcc/rtl.def
@@ -842,6 +842,11 @@ DEF_RTL_EXPR(RANGE_VAR, "range_var", "eti", 'x')
0 is the live bitmap. Operand 1 is the original block number. */
DEF_RTL_EXPR(RANGE_LIVE, "range_live", "bi", 'x')
+/* A unary `__builtin_constant_p' expression. These are only emitted
+ during RTL generation, and then only if optimize > 0. They are
+ eliminated by the first CSE pass. */
+DEF_RTL_EXPR(CONSTANT_P_RTX, "constant_p", "e", 'x')
+
/*
Local variables:
mode:c