[PATCH] D98898: [SimplifyCFG] use profile metadata to refine merging branch conditions
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 22 14:55:52 PDT 2021
lebedev.ri added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/SimplifyCFG.cpp:3009-3012
bool llvm::FoldBranchToCommonDest(BranchInst *BI, DomTreeUpdater *DTU,
MemorySSAUpdater *MSSAU,
const TargetTransformInfo *TTI,
unsigned BonusInstThreshold) {
----------------
`FoldBranchToCommonDest()` might be called from outside of SimplifyCFG (it is called from loopsimplify), without passing-in TTI, i guess.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98898/new/
https://reviews.llvm.org/D98898
More information about the llvm-commits
mailing list