[all-commits] [llvm/llvm-project] e5784e: [GlobalISel] Enable usage of BranchProbabilityInfo...

AE via All-commits all-commits at lists.llvm.org
Wed Sep 9 14:31:36 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e5784ef8f6c6a7779f5dfc8f989ea37d233be388
      https://github.com/llvm/llvm-project/commit/e5784ef8f6c6a7779f5dfc8f989ea37d233be388
  Author: Amara Emerson <amara at apple.com>
  Date:   2020-09-09 (Wed, 09 Sep 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
    M llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
    M llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
    M llvm/lib/Target/ARM/ARMTargetMachine.cpp
    M llvm/lib/Target/Mips/MipsTargetMachine.cpp
    M llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
    M llvm/lib/Target/X86/X86TargetMachine.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-condbr-lower-tree.ll
    M llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-switch-bittest.ll
    M llvm/test/CodeGen/AArch64/GlobalISel/swifterror.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/divergent-control-flow.ll
    M llvm/test/CodeGen/X86/GlobalISel/phi.ll

  Log Message:
  -----------
  [GlobalISel] Enable usage of BranchProbabilityInfo in IRTranslator.

We weren't using this before, so none of the MachineFunction CFG edges had the
branch probability information added. As a result, block placement later in the
pipeline was flying blind.

This is enabled only with optimizations enabled like SelectionDAG.

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


  Commit: a9f79707624fe20e7ac19c5063d77190baa8b281
      https://github.com/llvm/llvm-project/commit/a9f79707624fe20e7ac19c5063d77190baa8b281
  Author: Amara Emerson <amara at apple.com>
  Date:   2020-09-09 (Wed, 09 Sep 2020)

  Changed paths:
    M llvm/test/CodeGen/AArch64/GlobalISel/prelegalizercombiner-br.mir

  Log Message:
  -----------
  Add REQUIRES: asserts to a test that uses an asserts only flag.


Compare: https://github.com/llvm/llvm-project/compare/91656fcb57ec...a9f79707624f


More information about the All-commits mailing list