diff options
author | Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> | 2004-07-09 05:19:14 +0200 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2004-07-09 03:19:14 +0000 |
commit | e9eb809dec69b6280ed2f2830efd1ac8b7d9bcb8 (patch) | |
tree | b093da742fb0c72680308c3cb8cd011bf2fbc8fc /gcc/tree-scalar-evolution.c | |
parent | dd29d26b24928bdbcbdb1e7cbe09284f76f886f7 (diff) | |
download | gcc-e9eb809dec69b6280ed2f2830efd1ac8b7d9bcb8.zip gcc-e9eb809dec69b6280ed2f2830efd1ac8b7d9bcb8.tar.gz gcc-e9eb809dec69b6280ed2f2830efd1ac8b7d9bcb8.tar.bz2 |
tree-scalar-evolution.c: New file.
* tree-scalar-evolution.c: New file.
* tree-scalar-evolution.h: New file.
* tree-ssa-loop-niter.c: New file.
* Makefile.in (SCEV_H): New.
(tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
* cfgloop.h (struct loop): Add bounds field.
* tree-flow.h (struct tree_niter_desc): New type.
(number_of_iterations_cond, number_of_iterations_exit,
loop_niter_by_eval, find_loop_niter_by_eval,
estimate_numbers_of_iterations, can_count_iv_in_wider_type,
free_numbers_of_iterations_estimates): Declare.
* tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
* params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
* doc/invoke.texi (max-iterations-to-track): Document.
From-SVN: r84340
Diffstat (limited to 'gcc/tree-scalar-evolution.c')
-rw-r--r-- | gcc/tree-scalar-evolution.c | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/gcc/tree-scalar-evolution.c b/gcc/tree-scalar-evolution.c new file mode 100644 index 0000000..fc671e3 --- /dev/null +++ b/gcc/tree-scalar-evolution.c @@ -0,0 +1,61 @@ +/* Scalar evolution detector. + Copyright (C) 2003, 2004 Free Software Foundation, Inc. + Contributed by Sebastian Pop <s.pop@laposte.net> + +This file is part of GCC. + +GCC is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License as published by the Free +Software Foundation; either version 2, or (at your option) any later +version. + +GCC is distributed in the hope that it will be useful, but WITHOUT ANY +WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with GCC; see the file COPYING. If not, write to the Free +Software Foundation, 59 Temple Place - Suite 330, Boston, MA +02111-1307, USA. */ + +#include "config.h" +#include "system.h" +#include "coretypes.h" +#include "tm.h" +#include "errors.h" +#include "ggc.h" +#include "tree.h" +#include "rtl.h" +#include "basic-block.h" +#include "diagnostic.h" +#include "tree-flow.h" +#include "tree-dump.h" +#include "timevar.h" +#include "cfgloop.h" +#include "tree-chrec.h" +#include "tree-scalar-evolution.h" + +/* Analyze all the parameters of the chrec that were left under a + symbolic form. LOOP is the loop in which symbolic names have to + be analyzed and instantiated. */ + +tree +instantiate_parameters (struct loop *loop ATTRIBUTE_UNUSED, + tree chrec) +{ + /* Just a dummy definition for now. */ + return chrec; +} + +/* Checks whether OP behaves as a simple affine iv of LOOP in STMT and returns + its BASE and STEP if possible. */ + +bool +simple_iv (struct loop *loop ATTRIBUTE_UNUSED, tree stmt ATTRIBUTE_UNUSED, + tree op ATTRIBUTE_UNUSED, tree *base ATTRIBUTE_UNUSED, + tree *step ATTRIBUTE_UNUSED) +{ + /* Just a dummy definition for now. */ + return false; +} |