Skip to content

Commit f598b97

Browse files
committed
Remove unrelated changes.
1 parent 36c8dc0 commit f598b97

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

llvm/include/llvm/CodeGen/BasicBlockSectionsProfileReader.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@ struct BBPosition {
4747
unsigned CallsiteIndex;
4848
};
4949

50-
struct PrefetchHint {
51-
BBPosition SitePosition;
52-
StringRef TargetFunctionName;
53-
BBPosition TargetPosition;
54-
};
55-
5650
// This represents the raw input profile for one function.
5751
struct FunctionPathAndClusterInfo {
5852
// BB Cluster information specified by `UniqueBBID`s.
@@ -61,7 +55,6 @@ struct FunctionPathAndClusterInfo {
6155
// the edge a -> b (a is not cloned). The index of the path in this vector
6256
// determines the `UniqueBBID::CloneID` of the cloned blocks in that path.
6357
SmallVector<SmallVector<unsigned>> ClonePaths;
64-
SmallVector<PrefetchHint> PrefetchHints;
6558
SmallVector<BBPosition> PrefetchTargets;
6659
// Node counts for each basic block.
6760
DenseMap<UniqueBBID, uint64_t> NodeCounts;
@@ -99,9 +92,6 @@ class BasicBlockSectionsProfileReader {
9992
uint64_t getEdgeCount(StringRef FuncName, const UniqueBBID &SrcBBID,
10093
const UniqueBBID &SinkBBID) const;
10194

102-
SmallVector<PrefetchHint>
103-
getPrefetchHintsForFunction(StringRef FuncName) const;
104-
10595
SmallVector<BBPosition>
10696
getPrefetchTargetsForFunction(StringRef FuncName) const;
10797

@@ -213,8 +203,6 @@ class BasicBlockSectionsProfileReaderWrapperPass : public ImmutablePass {
213203

214204
uint64_t getEdgeCount(StringRef FuncName, const UniqueBBID &SrcBBID,
215205
const UniqueBBID &DestBBID) const;
216-
SmallVector<PrefetchHint>
217-
getPrefetchHintsForFunction(StringRef FuncName) const;
218206

219207
SmallVector<BBPosition>
220208
getPrefetchTargetsForFunction(StringRef FuncName) const;

llvm/lib/CodeGen/BasicBlockSectionsProfileReader.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,6 @@ uint64_t BasicBlockSectionsProfileReader::getEdgeCount(
9393
return EdgeIt->second;
9494
}
9595

96-
SmallVector<PrefetchHint>
97-
BasicBlockSectionsProfileReader::getPrefetchHintsForFunction(
98-
StringRef FuncName) const {
99-
return ProgramPathAndClusterInfo.lookup(getAliasName(FuncName)).PrefetchHints;
100-
}
101-
10296
SmallVector<BBPosition>
10397
BasicBlockSectionsProfileReader::getPrefetchTargetsForFunction(
10498
StringRef FuncName) const {
@@ -547,12 +541,6 @@ uint64_t BasicBlockSectionsProfileReaderWrapperPass::getEdgeCount(
547541
return BBSPR.getEdgeCount(FuncName, SrcBBID, SinkBBID);
548542
}
549543

550-
SmallVector<PrefetchHint>
551-
BasicBlockSectionsProfileReaderWrapperPass::getPrefetchHintsForFunction(
552-
StringRef FuncName) const {
553-
return BBSPR.getPrefetchHintsForFunction(FuncName);
554-
}
555-
556544
SmallVector<BBPosition>
557545
BasicBlockSectionsProfileReaderWrapperPass::getPrefetchTargetsForFunction(
558546
StringRef FuncName) const {

0 commit comments

Comments
 (0)