summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-niter.c
diff options
context:
space:
mode:
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-24 20:50:42 +0000
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2004-08-24 20:50:42 +0000
commit4fef3950f5c13ba7d8c37b9d87954d2663f04fc5 (patch)
treefe4b6ef3b48d94afd46bc5b19f7cf85f957f5e24 /gcc/tree-ssa-loop-niter.c
parentbb445479def5c8fcb62ba57aa917feec3228322c (diff)
downloadgcc-4fef3950f5c13ba7d8c37b9d87954d2663f04fc5.tar.gz
PR tree-optimization/17016
* tree-ssa-loop-niter.c (number_of_iterations_cond, number_of_iterations_exit): Use POINTER_TYPE_P instead of testing for POINTER_TYPE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86517 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-loop-niter.c')
-rw-r--r--gcc/tree-ssa-loop-niter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-loop-niter.c b/gcc/tree-ssa-loop-niter.c
index af1fbad1090..caba8b53b98 100644
--- a/gcc/tree-ssa-loop-niter.c
+++ b/gcc/tree-ssa-loop-niter.c
@@ -171,7 +171,7 @@ number_of_iterations_cond (tree type, tree base0, tree step0,
return;
}
- if (TREE_CODE (type) == POINTER_TYPE)
+ if (POINTER_TYPE_P (type))
{
/* We assume pointer arithmetic never overflows. */
mmin = mmax = NULL_TREE;
@@ -653,7 +653,7 @@ number_of_iterations_exit (struct loop *loop, edge exit,
type = TREE_TYPE (op0);
if (TREE_CODE (type) != INTEGER_TYPE
- && TREE_CODE (type) != POINTER_TYPE)
+ && !POINTER_TYPE_P (type))
return false;
if (!simple_iv (loop, stmt, op0, &base0, &step0))