diff options
author | Richard Henderson <rth@cygnus.com> | 1998-06-30 09:19:11 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1998-06-30 09:19:11 -0700 |
commit | cff48d8f76463f870df7340253373b7c84b52f7f (patch) | |
tree | 5176e675ace86f9c1b331ce84ab33709cfe7e130 /gcc/cse.c | |
parent | 84001dd054fd6514c6104b829320733db1ec7cd7 (diff) | |
download | gcc-cff48d8f76463f870df7340253373b7c84b52f7f.zip gcc-cff48d8f76463f870df7340253373b7c84b52f7f.tar.gz gcc-cff48d8f76463f870df7340253373b7c84b52f7f.tar.bz2 |
rtl.def (CONSTANT_P_RTX): New.
* 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.
From-SVN: r20846
Diffstat (limited to 'gcc/cse.c')
-rw-r--r-- | gcc/cse.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -5715,6 +5715,12 @@ fold_rtx (x, insn) const_arg1 ? const_arg1 : folded_arg1, const_arg2 ? const_arg2 : XEXP (x, 2)); break; + + case 'x': + /* Always eliminate CONSTANT_P_RTX at this stage. */ + if (code == CONSTANT_P_RTX) + return (const_arg0 ? const1_rtx : const0_rtx); + break; } return new ? new : x; |