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] | |
Absolutely not. With this approach you are merely muddling the interface to helper functions. A helper function should not rely on implicit initialization of global data. The BB_VISITED bit is a globally shared attribute, assuming anything about it inside a helper function is a recipe for confusion and hard-to-track bugs.it does not change them -- they must be clear on the entry, and they are clear on the exit. Aand this is by far the simplest way. On contrary, I believe that the optimization passes should not use these flags. While inside the shared utility there is at least some justification for it (it saves you passing bitmap to it and other trouble), I see no justification why for example PRE cannot use sbitmap instead of touching BB_VISITED.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |