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, PR middle-end/70807] Free dominance info in CSE pass


On 05/10/2016 06:19 PM, Ilya Enkovich wrote:
Curretly CSE may modify CFG and leave invalid dominance info.  This patch
improves track of CFG changes by CSE passes and frees dominance info if
required.  This allows to remove corresponding workaround from STV pass.

Does it look OK?

Better tracking of cse_cfg_altered seems good regardless. So that's an OK for everything but...

+  if (cse_cfg_altered && dom_info_available_p (CDI_DOMINATORS))
+    free_dominance_info (CDI_DOMINATORS);

I wonder whether it should be the last user of dominance info that should be freeing it (maybe it's not just cse that can destroy it?)

Which pass is leaving it around?


Bernd


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