[all-commits] [llvm/llvm-project] f415d7: [SampleProfile] Handle the case when the option `M...

minglotus-6 via All-commits all-commits at lists.llvm.org
Tue Feb 22 21:45:12 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f415d74d1df3995795c889333d493b0dcc31a863
      https://github.com/llvm/llvm-project/commit/f415d74d1df3995795c889333d493b0dcc31a863
  Author: minglotus-6 <mingmingl at google.com>
  Date:   2022-02-22 (Tue, 22 Feb 2022)

  Changed paths:
    M llvm/lib/Transforms/IPO/SampleProfile.cpp

  Log Message:
  -----------
  [SampleProfile] Handle the case when the option `MaxNumPromotions` is zero.

In places where `MaxNumPromotions` is used to allocated an array, bail out early to prevent allocating an array of length 0.

Differential Revision: https://reviews.llvm.org/D120295




More information about the All-commits mailing list