From 698f0dee3a09c0fcca0d21b6484f2c29f54658a1 Mon Sep 17 00:00:00 2001 From: law Date: Mon, 20 Sep 1999 17:12:03 +0000 Subject: 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29526 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/fold-const.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'gcc/fold-const.c') diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 7fe6f25fe23..54eeb452eb5 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) -- cgit v1.2.1