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]

[GOOGLE] max-lipo-group parameter for AutoFDO


This patch fix the bug when setting max-lipo-group in AutoFDO:

Bootstrapped and passed regression test.

OK for google branches?

Thanks,
Dehao

Index: gcc/auto-profile.c
===================================================================
--- gcc/auto-profile.c (revision 202926)
+++ gcc/auto-profile.c (working copy)
@@ -746,7 +746,7 @@ read_aux_modules (void)
     "assembler statements", *iter);
   continue;
  }
-      if (max_group != 0 && curr_module == max_group)
+      if (max_group != 0 && curr_module >= max_group)
  {
   if (flag_opt_info)
     inform (0, "Not importing %s: maximum group size reached", *iter);


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