[all-commits] [llvm/llvm-project] 4d21b6: [BPI] Look-up tables for non-loop branches. NFC.

sjoerdmeijer via All-commits all-commits at lists.llvm.org
Mon Nov 22 02:31:44 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4d21b64464ac548ec8442bc0d2a7e984ba78bd88
      https://github.com/llvm/llvm-project/commit/4d21b64464ac548ec8442bc0d2a7e984ba78bd88
  Author: Sjoerd Meijer <sjoerd.meijer at arm.com>
  Date:   2021-11-22 (Mon, 22 Nov 2021)

  Changed paths:
    M llvm/lib/Analysis/BranchProbabilityInfo.cpp
    A llvm/test/Analysis/BranchProbabilityInfo/pointer_heuristics.ll

  Log Message:
  -----------
  [BPI] Look-up tables for non-loop branches. NFC.

This adds and uses look-up tables for non-loop branch probabilities, which have
have probabilities directly encoded into the tables for the different condition
codes. Compared to having this logic inlined in different functions, as it used
to be the case, I think this is compacter and thus also easier to check/cross
reference. This also adds a test for pointer heuristics that was missing.

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




More information about the All-commits mailing list