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/15239: Artificial limit in expand_mult


- mult_cost = MIN (12 * add_cost, mult_cost);

Why not


  if (optimize_size)
    mult_cost = MIN (12 * add_cost, mult_cost);

? This would make the code clearer.

Paolo


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