aboutsummaryrefslogtreecommitdiff
path: root/gcc/range-op.cc
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2024-05-10 00:38:51 +0200
committerAldy Hernandez <aldyh@redhat.com>2024-05-16 11:59:08 +0200
commitda73261ce7731be7f2b164f1db796878cdc23365 (patch)
tree9747a709481fa413d64255609ab2ded143910bb6 /gcc/range-op.cc
parentb8e3574e68310f68116f157a35d5650600d13718 (diff)
downloadgcc-da73261ce7731be7f2b164f1db796878cdc23365.zip
gcc-da73261ce7731be7f2b164f1db796878cdc23365.tar.gz
gcc-da73261ce7731be7f2b164f1db796878cdc23365.tar.bz2
Revert "Revert: "Enable prange support.""
This reverts commit d7bb8eaade3cd3aa70715c8567b4d7b08098e699 and enables prange support again.
Diffstat (limited to 'gcc/range-op.cc')
-rw-r--r--gcc/range-op.cc18
1 files changed, 4 insertions, 14 deletions
diff --git a/gcc/range-op.cc b/gcc/range-op.cc
index 852d59c..d188d1a 100644
--- a/gcc/range-op.cc
+++ b/gcc/range-op.cc
@@ -102,23 +102,13 @@ range_op_table::range_op_table ()
set (MINUS_EXPR, op_minus);
set (NEGATE_EXPR, op_negate);
set (MULT_EXPR, op_mult);
-
- // Occur in both integer and pointer tables, but currently share
- // integral implementation.
set (ADDR_EXPR, op_addr);
set (BIT_NOT_EXPR, op_bitwise_not);
set (BIT_XOR_EXPR, op_bitwise_xor);
-
- // These are in both integer and pointer tables, but pointer has a different
- // implementation.
- // If commented out, there is a hybrid version in range-op-ptr.cc which
- // is used until there is a pointer range class. Then we can simply
- // uncomment the operator here and use the unified version.
-
- // set (BIT_AND_EXPR, op_bitwise_and);
- // set (BIT_IOR_EXPR, op_bitwise_or);
- // set (MIN_EXPR, op_min);
- // set (MAX_EXPR, op_max);
+ set (BIT_AND_EXPR, op_bitwise_and);
+ set (BIT_IOR_EXPR, op_bitwise_or);
+ set (MIN_EXPR, op_min);
+ set (MAX_EXPR, op_max);
}
// Instantiate a default range operator for opcodes with no entry.