[PATCH] D73222: [PGO] Early detection regarding whether pgo counter promotion is possible
David Li via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 22 14:31:39 PST 2020
davidxl added inline comments.
================
Comment at: llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp:328
+ // Counter Promotions.
+ bool isPromotionPossible(Loop *LP) {
// We can't insert into a catchswitch.
----------------
You can pass LoopExitBlocks reference as a parameter to this function so that the call to getExitBlocks can be shared with the caller of it.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73222/new/
https://reviews.llvm.org/D73222
More information about the llvm-commits
mailing list