aboutsummaryrefslogtreecommitdiff
path: root/gcc/combine.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2003-02-20 21:56:53 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2003-02-20 20:56:53 +0000
commitb9422b69c4574ea53d1a5fdbc90de3935589e502 (patch)
tree2415e41e359f1d67f528163fbed9de0eeb20bffe /gcc/combine.c
parente182f0a397a1b985f86641787df37d12b1d00aa3 (diff)
downloadgcc-b9422b69c4574ea53d1a5fdbc90de3935589e502.zip
gcc-b9422b69c4574ea53d1a5fdbc90de3935589e502.tar.gz
gcc-b9422b69c4574ea53d1a5fdbc90de3935589e502.tar.bz2
toplev.c (flag_sched2_use_superblocks, [...]): New global variables.
* toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New global variables. (lang_independent_options): Add -fsched2-use-superblocks -fsced2-use-traces. (rest_of_compilation): Deal with it. * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks): Declare. * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces): Declare. * rtl.h (reg_to_stack): Update prototype. * reg-stack.c (reg_to_stack): Return when something has changed; update liveness when executing after superblock scheduling. * combine.c (simplify_shift_const): Simplify few special cases into constants. From-SVN: r63183
Diffstat (limited to 'gcc/combine.c')
-rw-r--r--gcc/combine.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/combine.c b/gcc/combine.c
index ce4d3aa..7792537 100644
--- a/gcc/combine.c
+++ b/gcc/combine.c
@@ -9431,6 +9431,16 @@ simplify_shift_const (x, code, result_mode, varop, orig_count)
== 0))
code = LSHIFTRT;
+ if (code == LSHIFTRT
+ && GET_MODE_BITSIZE (shift_mode) <= HOST_BITS_PER_WIDE_INT
+ && !(nonzero_bits (varop, shift_mode) >> count))
+ return const0_rtx;
+ if (code == ASHIFT
+ && GET_MODE_BITSIZE (shift_mode) <= HOST_BITS_PER_WIDE_INT
+ && !((nonzero_bits (varop, shift_mode) << count)
+ & GET_MODE_MASK (shift_mode)))
+ return const0_rtx;
+
switch (GET_CODE (varop))
{
case SIGN_EXTEND: