This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Middle-end dead code elimination
- From: Joern Rennecke <joern dot rennecke at superh dot com>
- To: Diego Novillo <dnovillo at redhat dot com>
- Cc: Roger Sayle <roger at www dot eyesopen dot com>, Jeff Law <law at redhat dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 17 Apr 2003 17:13:30 +0100
- Subject: Re: [PATCH] Middle-end dead code elimination
- Organization: SuperH UK Ltd.
> Yes, the linearizer should be removing them, but the point is to avoid
generating thousands of useless blocks to begin with.
It seems to me the most straightforward way to achieve this is to do a
little bit of optimization on the saved tree of an inlined function, before
it is used for any inlineing. Thus, when you have 8000 destructor calls
inlined, you optimize all 8000 for the price of one. Moreover, after this
optimization, we can gauge the number of instructions in the to-be-inlined
function more exactly.
--
--------------------------
SuperH (UK) Ltd.
2410 Aztec West / Almondsbury / BRISTOL / BS32 4QX
T:+44 1454 465658