[all-commits] [llvm/llvm-project] 0b7e8b: [BOLT][AArch64] Handle data at the beginning of a ...

Rafael Auler via All-commits all-commits at lists.llvm.org
Thu Jun 9 15:26:56 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0b7e8baf83befdb9cd7c282d943492581f2dd17c
      https://github.com/llvm/llvm-project/commit/0b7e8baf83befdb9cd7c282d943492581f2dd17c
  Author: Denis Revunov <revunov.denis at huawei-partners.com>
  Date:   2022-06-09 (Thu, 09 Jun 2022)

  Changed paths:
    M bolt/include/bolt/Core/BinaryFunction.h
    M bolt/lib/Core/BinaryFunction.cpp
    M bolt/lib/Core/Exceptions.cpp
    A bolt/test/AArch64/data-at-0-offset.c

  Log Message:
  -----------
  [BOLT][AArch64] Handle data at the beginning of a function when disassembling and building CFG.

This patch adds getFirstInstructionOffset method for BinaryFunction
which is used to properly handle cases where data is at zero offset in
a function. The main change is that we add basic block at first
instruction offset when disassembling, which prevents assertion
failures in buildCFG.

Reviewed By: yota9, rafauler

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




More information about the All-commits mailing list