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: [tree-ssa] [PATCH]: Fix DCE not updating bb->end_tree_p


heh?  bsi_prev() simply uses bsi_next() to iterate from bsi_start()
until it points to the required statement, and then uses whatever the
iterator was before we stepped into bsi_next() to get to the current
stmt. So it should be the exact previous iterator...

But it doesn't work always. Like I said. Try replacing the loop with bsi_last (bb), and you'll see.

Grr, of course, now, it starts working when i do that.
Figures.
I'll commit the patch with the loop removed and replaced with bsi_last (bb).



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