diff options
author | Jeffrey A Law <law@cygnus.com> | 1999-09-20 17:12:03 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1999-09-20 11:12:03 -0600 |
commit | 8d0281351215583e5125523108429c623b9cceb7 (patch) | |
tree | a7dae7802968c8641e3f4fd7b64ab2e10c32b95b /gcc | |
parent | 7161fcc7c5e7b3eb3b3aa4b1ffbac14dee4c580b (diff) | |
download | gcc-8d0281351215583e5125523108429c623b9cceb7.zip gcc-8d0281351215583e5125523108429c623b9cceb7.tar.gz gcc-8d0281351215583e5125523108429c623b9cceb7.tar.bz2 |
Revert this change. Gavin's patch to operand_equal_p is a better fix.
* fold-const.c (fold_range_test): Do not try to fold the range
test if the rhs or lhs has side effects.
From-SVN: r29526
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/fold-const.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cfb83bc..a603dc0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -24,6 +24,10 @@ Mon Sep 20 14:43:37 1999 Nick Clifton <nickc@cygnus.com> Mon Sep 20 05:41:36 1999 Jeffrey A Law (law@cygnus.com) + Revert this change. Gavin's patch to operand_equal_p is a better fix. + * fold-const.c (fold_range_test): Do not try to fold the range + test if the rhs or lhs has side effects. + * basic-block.h (compute_flow_dominators): Declare. * gcse.c (alloc_code_hoist_mem): New function. diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 7fe6f25..54eeb45 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -3571,10 +3571,6 @@ fold_range_test (exp) tree rhs = make_range (TREE_OPERAND (exp, 1), &in1_p, &low1, &high1); tree tem; - /* Fail if anything is volatile. */ - if (TREE_SIDE_EFFECTS (lhs) || TREE_SIDE_EFFECTS (rhs)) - return 0; - /* If this is an OR operation, invert both sides; we will invert again at the end. */ if (or_op) |