This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Middle-end dead code elimination


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]