aboutsummaryrefslogtreecommitdiff
path: root/gcc/range-op.cc
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2024-05-10 00:29:13 +0200
committerAldy Hernandez <aldyh@redhat.com>2024-05-10 00:33:16 +0200
commitd7bb8eaade3cd3aa70715c8567b4d7b08098e699 (patch)
treee6b71b9cb901f3c061f3b594f4801c255c8757ad /gcc/range-op.cc
parentf2449b55fb2d32fc4200667ba79847db31f6530d (diff)
downloadgcc-d7bb8eaade3cd3aa70715c8567b4d7b08098e699.zip
gcc-d7bb8eaade3cd3aa70715c8567b4d7b08098e699.tar.gz
gcc-d7bb8eaade3cd3aa70715c8567b4d7b08098e699.tar.bz2
Revert: "Enable prange support." [PR114985]
This reverts commit 36e877996936abd8bd08f8b1d983c8d1023a5842 until the IPA pass is fixed with regards to POINTER = POINTER <RELOP> POINTER.
Diffstat (limited to 'gcc/range-op.cc')
-rw-r--r--gcc/range-op.cc18
1 files changed, 14 insertions, 4 deletions
diff --git a/gcc/range-op.cc b/gcc/range-op.cc
index e001364..a134af6 100644
--- a/gcc/range-op.cc
+++ b/gcc/range-op.cc
@@ -102,13 +102,23 @@ 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);
- set (BIT_AND_EXPR, op_bitwise_and);
- set (BIT_IOR_EXPR, op_bitwise_or);
- set (MIN_EXPR, op_min);
- set (MAX_EXPR, op_max);
+
+ // 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);
}
// Instantiate a default range operator for opcodes with no entry.