summaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorglisse <glisse@138bc75d-0d04-0410-961f-82ee72b054a4>2015-05-22 21:05:26 +0000
committerglisse <glisse@138bc75d-0d04-0410-961f-82ee72b054a4>2015-05-22 21:05:26 +0000
commitc59372d1613b130e07808a1ba0d0189b7ed3d51f (patch)
tree0661107ebb924daf8be432841222366fbbb22e80 /gcc/fold-const.c
parentcc77228cbb0c4d81ab5ba569d8593e696cb0f520 (diff)
downloadgcc-c59372d1613b130e07808a1ba0d0189b7ed3d51f.tar.gz
2015-05-22 Marc Glisse <marc.glisse@inria.fr>
PR tree-optimization/63387 gcc/ * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition. ((x ord x) & (y ord y) -> (x ord y), (x ord x) & (x ord y) -> (x ord y)): New simplifications. * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle vectors like scalars. gcc/testsuite/ * gcc.dg/pr63387-2.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223591 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 1476ee0b1ed..c38a63336d3 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -14688,7 +14688,7 @@ tree_unary_nonnegative_warnv_p (enum tree_code code, tree type, tree op0,
case ABS_EXPR:
/* We can't return 1 if flag_wrapv is set because
ABS_EXPR<INT_MIN> = INT_MIN. */
- if (!INTEGRAL_TYPE_P (type))
+ if (!ANY_INTEGRAL_TYPE_P (type))
return true;
if (TYPE_OVERFLOW_UNDEFINED (type))
{