diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-09-01 07:29:23 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-09-01 07:29:23 +0000 |
commit | d5e0534e64b525e8dca8e2fa05455011031c643a (patch) | |
tree | 61d274e19b123144c2895546960a996641555928 /gcc/stmt.c | |
parent | a30fe044170c44da9e441535e2167ca8e885b3cb (diff) | |
download | gcc-d5e0534e64b525e8dca8e2fa05455011031c643a.tar.gz |
2008-09-01 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk r139848
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@139851 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r-- | gcc/stmt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c index 2464466b376..ee880964fe1 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -2125,7 +2125,8 @@ bool lshift_cheap_p (void) if (!init) { rtx reg = gen_rtx_REG (word_mode, 10000); - int cost = rtx_cost (gen_rtx_ASHIFT (word_mode, const1_rtx, reg), SET); + int cost = rtx_cost (gen_rtx_ASHIFT (word_mode, const1_rtx, reg), SET, + optimize_insn_for_speed_p ()); cheap = cost < COSTS_N_INSNS (3); init = true; } |