This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Pessimization in doloop
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: Bernd Schmidt <bernds_cb1 at t-online dot de>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 16 Sep 2006 00:38:10 +0200
- Subject: Re: Pessimization in doloop
- References: <450A8CB1.1080206@t-online.de> <450B2744.3060209@pop.agri.ch>
This is the complete patch.
pls let me know if ok.
Thanks
Andreas
2006-09-16 Andreas Tobler <a.tobler@schweiz.org>
* loop-doloop.c (doloop_optimize): Change type of max_cost to int.
Add forgotten parameter to the fprintf call.
Index: gcc/loop-doloop.c
===================================================================
--- gcc/loop-doloop.c (revision 116981)
+++ gcc/loop-doloop.c (working copy)
@@ -1,5 +1,5 @@
/* Perform doloop optimizations
- Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+ Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
Based on code by Michael P. Hayes (m.hayes@elec.canterbury.ac.nz)
This file is part of GCC.
@@ -484,7 +484,8 @@
rtx iterations_max;
rtx start_label;
rtx condition;
- unsigned level, est_niter, max_cost;
+ unsigned level, est_niter;
+ int max_cost;
struct niter_desc *desc;
unsigned word_mode_size;
unsigned HOST_WIDE_INT word_mode_max;
@@ -531,7 +532,7 @@
{
if (dump_file)
fprintf (dump_file,
- "Doloop: number of iterations too costly to compute.\n",
+ "Doloop: number of iterations (%u) too costly to
compute.\n",
est_niter);
return false;
}