[PATCH] D84715: [FIX] Add check for empty body function
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 28 02:00:32 PDT 2020
fhahn added inline comments.
================
Comment at: llvm/lib/Analysis/BranchProbabilityInfo.cpp:1071
<< " ----\n\n");
+ if (F.empty())
+ return;
----------------
Are empty functions valid IR? Don't they have to have at least a single BB. And each BB needs at least a terminator?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84715/new/
https://reviews.llvm.org/D84715
More information about the llvm-commits
mailing list