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] passes.c: Remove a cut-n-paste error.



If you look at the patch, it's obvious that there is the same code
repeated twice. I don't know the gory details about those functions
called within the "if" statement, but none of them seems to require
two iterations as far as I can tell from their function names.


You're right, when the second "if" is executed basic_block_info is set and we skip everything.

Actually *both* copies should be spurious now, since now rest_of_compilation is never called except from the pass manager.

Paolo


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