[all-commits] [llvm/llvm-project] 836991: Fix a crash when the sample profile uses md5 and -...

wmi-11 via All-commits all-commits at lists.llvm.org
Thu Jul 30 21:21:44 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 836991d3676fda06d0f07c816ba855c8a0c3e0aa
      https://github.com/llvm/llvm-project/commit/836991d3676fda06d0f07c816ba855c8a0c3e0aa
  Author: Wei Mi <wmi at google.com>
  Date:   2020-07-30 (Thu, 30 Jul 2020)

  Changed paths:
    M llvm/include/llvm/ProfileData/SampleProf.h
    M llvm/lib/Transforms/IPO/SampleProfile.cpp
    A llvm/test/Transforms/SampleProfile/Inputs/inline-mergeprof.md5.prof
    M llvm/test/Transforms/SampleProfile/inline-mergeprof.ll

  Log Message:
  -----------
  Fix a crash when the sample profile uses md5 and -sample-profile-merge-inlinee
is enabled.

When -sample-profile-merge-inlinee is enabled, new FunctionSamples may be
created during profile merge without GUIDToFuncNameMap being initialized.
That will occasionally cause compiler crash. The patch fixes it.

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




More information about the All-commits mailing list