File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -65,14 +65,17 @@ SmallVector<BBClusterInfo>
6565BasicBlockSectionsProfileReader::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
7172SmallVector<SmallVector<unsigned >>
7273BasicBlockSectionsProfileReader::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
7881uint64_t BasicBlockSectionsProfileReader::getEdgeCount (
You can’t perform that action at this time.
0 commit comments