[PATCH] D110438: [BPI] Keep BPI available in loop passes through LoopStandardAnalysisResults

Anna Thomas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 28 13:03:38 PDT 2021


anna updated this revision to Diff 375678.
anna added a comment.

We need to explicitly check for loop-predication in PassBuilder, so that UseBranchProbabilityInfo is set true.
(Without this change profitability.ll test will fail since LPM invocation by default has UseBranchProbabilityInfo=false).

This is the only change in the diff and analogous to the UseBFI = any_pass = `LICM` check just above that.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110438/new/

https://reviews.llvm.org/D110438

Files:
  llvm/include/llvm/Analysis/LoopAnalysisManager.h
  llvm/include/llvm/Transforms/Scalar/LoopPassManager.h
  llvm/lib/Passes/PassBuilder.cpp
  llvm/lib/Transforms/Scalar/LoopDistribute.cpp
  llvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
  llvm/lib/Transforms/Scalar/LoopPassManager.cpp
  llvm/lib/Transforms/Scalar/LoopPredication.cpp
  llvm/lib/Transforms/Utils/LoopVersioning.cpp
  llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
  llvm/test/Transforms/LoopPredication/preserve-bpi.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110438.375678.patch
Type: text/x-patch
Size: 13116 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210928/d8f1e856/attachment.bin>


More information about the llvm-commits mailing list