[all-commits] [llvm/llvm-project] 327934: [BPI] Look through bitcasts in calcZeroHeuristic

Wei Wang via All-commits all-commits at lists.llvm.org
Tue Nov 17 09:35:04 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3279347da05e590c970b37540d7e3ac873ae3e1d
      https://github.com/llvm/llvm-project/commit/3279347da05e590c970b37540d7e3ac873ae3e1d
  Author: Wei Wang <apollo.mobility at gmail.com>
  Date:   2020-11-17 (Tue, 17 Nov 2020)

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

  Log Message:
  -----------
  [BPI] Look through bitcasts in calcZeroHeuristic

Constant hoisting may hide the constant value behind bitcast for And's
operand. Track down the constant to make the BFI result consistent
regardless of hoisting.

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




More information about the All-commits mailing list