[all-commits] [llvm/llvm-project] dcc5ff: [PowerPC] Use PredictableSelectIsExpensive to enab...

Zhang Kang via All-commits all-commits at lists.llvm.org
Mon May 11 08:03:04 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: dcc5ff3bc2e85a07ff2192223c652fa2cdb164ef
      https://github.com/llvm/llvm-project/commit/dcc5ff3bc2e85a07ff2192223c652fa2cdb164ef
  Author: Kang Zhang <shkzhang at cn.ibm.com>
  Date:   2020-05-11 (Mon, 11 May 2020)

  Changed paths:
    M llvm/lib/Target/PowerPC/PPC.td
    M llvm/lib/Target/PowerPC/PPCISelLowering.cpp
    M llvm/lib/Target/PowerPC/PPCSubtarget.cpp
    M llvm/lib/Target/PowerPC/PPCSubtarget.h
    A llvm/test/CodeGen/PowerPC/select-to-branch.mir

  Log Message:
  -----------
  [PowerPC] Use PredictableSelectIsExpensive to enable select to branch in CGP

Summary:
This patch will set the variable PredictableSelectIsExpensive to do the
select to if based on BranchProbability in CodeGenPrepare.

When the BranchProbability more than MinPercentageForPredictableBranch,
PPC will convert SELECT to branch.

Reviewed By: nemanjai

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




More information about the All-commits mailing list