This is the mail archive of the gcc@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: [tree-ssa]: Code movement is a pain in the ass.


On Sun, 2003-08-10 at 16:12, Diego Novillo wrote:
> On Sun, 2003-08-10 at 15:38, Daniel Berlin wrote:
> 
> > > I meant implementing bsi_move in terms of bsi_remove and bsi_insert.  
> > > Is
> > > that feasible?
> > Yes, but it will require adding an extra argument to bsi_remove and 
> > remove_stmt.
> > 
> Or commonize some of the code in bsi_remove/remove_stmt.  Though, if
> that's too intrusive then I guess we add the argument.
> 
> 

bsi_remove is pretty simple... If you really want to not duplicate that
piece of code, common it out into a new function, add the parameter and
call it from bsi_remove. I wouldn't want to see the API to bsi_remove()
changed.  remove_stmt() is a static function, so do whatever you want to
that :-)

Andrew


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