2009/8/19 Pekka Enberg <penb...@cs.helsinki.fi>: > Hi Tomek, > > On Tue, 2009-08-18 at 21:21 +0200, Tomek Grabiec wrote: >> Like I said on IRC, this will not work for empty basic blocks, because >> spill_at_insn will belong to the preceding >> basic block. This causes that instructions will be added to different >> (preceding) basic block and might not be executed on some >> execution paths. > > Can we eliminate empty basic blocks after instruction selection > completely? >
I think it is doable. We would have to browse the bb list, and for empty basic blocks update branch targets (separately for tableswitch&lookupswitch tables) and successors/predecessors. In my opinion, it adds some overhead which can be avoided if algorithms can deal with empty basic blocks. -- Tomek Grabiec ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel