summaryrefslogtreecommitdiff
path: root/gcc/loop-init.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2013-04-29 09:09:08 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2013-04-29 09:09:08 +0000
commit9584aa9daaaef1df395b596496a37d8713a180c0 (patch)
tree05821b7b1c508f54cc00d84ecea7b4e4d56626c1 /gcc/loop-init.c
parent64670afc8104a5a09c880bf9b1bd46676b9a34d9 (diff)
downloadgcc-9584aa9daaaef1df395b596496a37d8713a180c0.tar.gz
2013-04-29 Richard Biener <rguenther@suse.de>
PR tree-optimization/57081 * loop-init.c: Include tree-flow.h. (loop_optimizer_finalize): Free number of iteration estimates. * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency. * gcc.dg/torture/pr57081.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198392 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop-init.c')
-rw-r--r--gcc/loop-init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/loop-init.c b/gcc/loop-init.c
index 664ff29dd5b..1f605c97606 100644
--- a/gcc/loop-init.c
+++ b/gcc/loop-init.c
@@ -30,6 +30,7 @@ along with GCC; see the file COPYING3. If not see
#include "flags.h"
#include "df.h"
#include "ggc.h"
+#include "tree-flow.h"
/* Apply FLAGS to the loop state. */
@@ -142,6 +143,8 @@ loop_optimizer_finalize (void)
if (loops_state_satisfies_p (LOOPS_HAVE_RECORDED_EXITS))
release_recorded_exits ();
+ free_numbers_of_iterations_estimates ();
+
/* If we should preserve loop structure, do not free it but clear
flags that advanced properties are there as we are not preserving
that in full. */