aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcse.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2002-01-10 21:37:43 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2002-01-10 20:37:43 +0000
commitb446e5a266b232e701fd4a9a7bd48f0aab8fc2c5 (patch)
tree19471938dee687744538e8ca3cc2eb35fdb507c2 /gcc/gcse.c
parenta01da83b2291abdccd8abe66eff604c50e3c71f0 (diff)
downloadgcc-b446e5a266b232e701fd4a9a7bd48f0aab8fc2c5.zip
gcc-b446e5a266b232e701fd4a9a7bd48f0aab8fc2c5.tar.gz
gcc-b446e5a266b232e701fd4a9a7bd48f0aab8fc2c5.tar.bz2
basic-block.h (update_br_prob_note): Declare.
* basic-block.h (update_br_prob_note): Declare. * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note. (try_forward_edges): Care negative frequencies and update note. (outgoing_edges_match): Tweek conditional merging heuristics. (try_crossjump_to_edge): use update_br_prob_note. * cfglayout.c (fixup_reorder_chain): Likewise. * cfrtl.c (update_br_prob_note): New. * ifcvt.c (dead_or_predicable): Call update_br_prob_note. * i386.c (ix86_decompose_address): Return -1 if address contains shift. (legitimate_address_p): Require ix86_decompose_address to return 1. * gcse.c (hash_scan_set): Use CONSTANT_INSN_P. (cprop_insn): Likewise. From-SVN: r48750
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r--gcc/gcse.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c
index e8361fc..af3b29e 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -2204,9 +2204,7 @@ hash_scan_set (pat, insn, set_p)
&& REGNO (src) >= FIRST_PSEUDO_REGISTER
&& can_copy_p [GET_MODE (dest)]
&& REGNO (src) != regno)
- || GET_CODE (src) == CONST_INT
- || GET_CODE (src) == SYMBOL_REF
- || GET_CODE (src) == CONST_DOUBLE)
+ || CONSTANT_P (src))
/* A copy is not available if its src or dest is subsequently
modified. Here we want to search from INSN+1 on, but
oprs_available_p searches from INSN on. */
@@ -4155,8 +4153,7 @@ cprop_insn (bb, insn, alter_jumps)
src = SET_SRC (pat);
/* Constant propagation. */
- if (GET_CODE (src) == CONST_INT || GET_CODE (src) == CONST_DOUBLE
- || GET_CODE (src) == SYMBOL_REF)
+ if (CONSTANT_P (src))
{
/* Handle normal insns first. */
if (GET_CODE (insn) == INSN