[all-commits] [llvm/llvm-project] 129c91: Include static prof data when collecting loop BBs

Bill Wendling via All-commits all-commits at lists.llvm.org
Wed Feb 19 11:34:00 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 129c911efaa492790c251b3eb18e4db36b55cbc5
      https://github.com/llvm/llvm-project/commit/129c911efaa492790c251b3eb18e4db36b55cbc5
  Author: Bill Wendling <isanbard at gmail.com>
  Date:   2020-02-19 (Wed, 19 Feb 2020)

  Changed paths:
    M llvm/include/llvm/CodeGen/MachineLoopInfo.h
    M llvm/lib/CodeGen/MachineBlockPlacement.cpp
    M llvm/lib/CodeGen/MachineLoopInfo.cpp
    M llvm/test/CodeGen/Hexagon/prof-early-if.ll
    A llvm/test/CodeGen/X86/block-placement-2.ll
    M llvm/test/CodeGen/X86/block-placement.ll
    M llvm/test/CodeGen/X86/move_latch_to_loop_top.ll
    M llvm/test/CodeGen/X86/ragreedy-bug.ll

  Log Message:
  -----------
  Include static prof data when collecting loop BBs

Summary:
If the programmer adds static profile data to a branch---i.e. uses
"__builtin_expect()" or similar---then we should honor it. Otherwise,
"__builtin_expect()" is ignored in crucial situations. So we trust that
the programmer knows what they're doing until proven wrong.

Subscribers: hiraditya, JDevlieghere, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list