diff options
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 4 |
1 files changed, 0 insertions, 4 deletions
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) |