[all-commits] [llvm/llvm-project] 55356c: [CSSPGO][llvm-profgen] Continue disassembling afte...

Hongtao Yu via All-commits all-commits at lists.llvm.org
Wed Mar 3 10:14:32 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 55356c011b60569668f60a89ddbe2ed76787b313
      https://github.com/llvm/llvm-project/commit/55356c011b60569668f60a89ddbe2ed76787b313
  Author: Hongtao Yu <hoy at fb.com>
  Date:   2021-03-03 (Wed, 03 Mar 2021)

  Changed paths:
    M llvm/tools/llvm-profgen/ProfiledBinary.cpp

  Log Message:
  -----------
  [CSSPGO][llvm-profgen] Continue disassembling after illegal instruction is seen.

Previously we errored out when disassembling illegal instructions and there would be no profile generated. In fact illegal instructions are not uncommon and we'd better skip them and print "unknown" instead of erroring out. This matches the behavior of llvm-objdump (see disassembleObject in llvm-objdump.cpp).

Reviewed By: wlei, wenlei

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




More information about the All-commits mailing list