[Bug middle-end/55279] New pseudo registers aren't supported in CSE

steven at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Dec 9 16:13:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55279

--- Comment #8 from Steven Bosscher <steven at gcc dot gnu.org> 2012-12-09 16:13:12 UTC ---
(In reply to comment #7)
> (In reply to comment #5)
> > Why can't cse_reg_info_table() be modified to intercept this?
> Correction: get_cse_reg_info()

Like so, quick-and-dirty hack. HJ, can you try and see if this
keeps valgrind happy?

Index: cse.c
===================================================================
--- cse.c       (revision 194325)
+++ cse.c       (working copy)
@@ -833,6 +833,7 @@
 static inline struct cse_reg_info *
 get_cse_reg_info (unsigned int regno)
 {
+  init_cse_reg_info (regno + 1);
   struct cse_reg_info *p = &cse_reg_info_table[regno];

   /* If this entry has not been initialized, go ahead and initialize



More information about the Gcc-bugs mailing list