Skip to content

Commit b741e4b

Browse files
committed
clang-format.
1 parent 1dd840d commit b741e4b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

llvm/lib/CodeGen/BasicBlockSections.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,8 @@ bool BasicBlockSections::handleBBSections(MachineFunction &MF) {
314314

315315
DenseMap<UniqueBBID, BBClusterInfo> FuncClusterInfo;
316316
if (BBSectionsType == BasicBlockSection::List) {
317-
auto ClusterInfo =
318-
getAnalysis<BasicBlockSectionsProfileReaderWrapperPass>()
319-
.getClusterInfoForFunction(MF.getName());
317+
auto ClusterInfo = getAnalysis<BasicBlockSectionsProfileReaderWrapperPass>()
318+
.getClusterInfoForFunction(MF.getName());
320319
for (auto &BBClusterInfo : ClusterInfo) {
321320
FuncClusterInfo.try_emplace(BBClusterInfo.BBID, BBClusterInfo);
322321
}

llvm/lib/CodeGen/BasicBlockSectionsProfileReader.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,17 @@ SmallVector<BBClusterInfo>
6565
BasicBlockSectionsProfileReader::getClusterInfoForFunction(
6666
StringRef FuncName) const {
6767
auto R = ProgramPathAndClusterInfo.find(getAliasName(FuncName));
68-
return R != ProgramPathAndClusterInfo.end() ? R->second.ClusterInfo : SmallVector<BBClusterInfo>();
68+
return R != ProgramPathAndClusterInfo.end() ? R->second.ClusterInfo
69+
: SmallVector<BBClusterInfo>();
6970
}
7071

7172
SmallVector<SmallVector<unsigned>>
7273
BasicBlockSectionsProfileReader::getClonePathsForFunction(
7374
StringRef FuncName) const {
7475
auto R = ProgramPathAndClusterInfo.find(getAliasName(FuncName));
75-
return R != ProgramPathAndClusterInfo.end() ? R->second.ClonePaths : SmallVector<SmallVector<unsigned>>();
76+
return R != ProgramPathAndClusterInfo.end()
77+
? R->second.ClonePaths
78+
: SmallVector<SmallVector<unsigned>>();
7679
}
7780

7881
uint64_t BasicBlockSectionsProfileReader::getEdgeCount(

0 commit comments

Comments
 (0)