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: [RFC] Mixed results with O(1) PHI arg lookup


Even in RTL or tree-level basic blocks without PHI node, we still have
calls to execute_on_new_edge and execute_on_removing_edge, which are
callbacks that are called upon adding or removing every edge.  An edge
redirection counts as one add and one remove operation.

You could add a BB_HAS_ATTACHED_INFO flag on bb's with PHI nodes, and only call the hooks if it is set. The insn-attrtab performance looks great.


Paolo


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