[all-commits] [llvm/llvm-project] c9cd9a: [SampleFDO] Report error when reading a bad/incomp...

wmi-11 via All-commits all-commits at lists.llvm.org
Mon Jan 25 10:33:34 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c9cd9a006632419ce7346e50564e6347a93181cc
      https://github.com/llvm/llvm-project/commit/c9cd9a006632419ce7346e50564e6347a93181cc
  Author: Wei Mi <wmi at google.com>
  Date:   2021-01-25 (Mon, 25 Jan 2021)

  Changed paths:
    M llvm/lib/Transforms/IPO/SampleProfile.cpp
    A llvm/test/Transforms/SampleProfile/Inputs/bad.extbinary.afdo
    M llvm/test/Transforms/SampleProfile/profile-format.ll

  Log Message:
  -----------
  [SampleFDO] Report error when reading a bad/incompatible profile instead of
turning off SampleFDO silently.

Currently sample loader pass turns off SampleFDO optimization silently when
it sees error in reading the profile. This behavior will defeat the tests
which could have caught those bad/incompatible profile problems. This patch
change the behavior to report error.

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




More information about the All-commits mailing list