[llvm] r297506 - [ProfileSummaryInfo] Remove unneeded braces. NFCI.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 10 12:50:52 PST 2017
Author: davide
Date: Fri Mar 10 14:50:51 2017
New Revision: 297506
URL: http://llvm.org/viewvc/llvm-project?rev=297506&view=rev
Log:
[ProfileSummaryInfo] Remove unneeded braces. NFCI.
Modified:
llvm/trunk/lib/Analysis/ProfileSummaryInfo.cpp
Modified: llvm/trunk/lib/Analysis/ProfileSummaryInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ProfileSummaryInfo.cpp?rev=297506&r1=297505&r2=297506&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ProfileSummaryInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/ProfileSummaryInfo.cpp Fri Mar 10 14:50:51 2017
@@ -104,9 +104,8 @@ bool ProfileSummaryInfo::isFunctionEntry
bool ProfileSummaryInfo::isFunctionEntryCold(const Function *F) {
if (!F)
return false;
- if (F->hasFnAttribute(Attribute::Cold)) {
+ if (F->hasFnAttribute(Attribute::Cold))
return true;
- }
if (!computeSummary())
return false;
auto FunctionCount = F->getEntryCount();
More information about the llvm-commits
mailing list