Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 0 additions & 62 deletions llvm/include/llvm/CodeGen/BasicBlockMatchingAndInference.h

This file was deleted.

7 changes: 0 additions & 7 deletions llvm/include/llvm/CodeGen/BasicBlockSectionsProfileReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,6 @@ class BasicBlockSectionsProfileReader {
uint64_t getEdgeCount(StringRef FuncName, const UniqueBBID &SrcBBID,
const UniqueBBID &SinkBBID) const;

// Return the complete function path and cluster info for the given function.
std::pair<bool, FunctionPathAndClusterInfo>
getFunctionPathAndClusterInfo(StringRef FuncName) const;

private:
StringRef getAliasName(StringRef FuncName) const {
auto R = FuncAliasMap.find(FuncName);
Expand Down Expand Up @@ -199,9 +195,6 @@ class BasicBlockSectionsProfileReaderWrapperPass : public ImmutablePass {
uint64_t getEdgeCount(StringRef FuncName, const UniqueBBID &SrcBBID,
const UniqueBBID &DestBBID) const;

std::pair<bool, FunctionPathAndClusterInfo>
getFunctionPathAndClusterInfo(StringRef FuncName) const;

// Initializes the FunctionNameToDIFilename map for the current module and
// then reads the profile for the matching functions.
bool doInitialization(Module &M) override;
Expand Down
2 changes: 0 additions & 2 deletions llvm/include/llvm/CodeGen/MachineBlockHashInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ struct BlendedBlockHash {
return Dist;
}

uint16_t getOpcodeHash() const { return OpcodeHash; }

private:
/// The offset of the basic block from the function start.
uint16_t Offset{0};
Expand Down
4 changes: 0 additions & 4 deletions llvm/include/llvm/CodeGen/Passes.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ LLVM_ABI MachineFunctionPass *createBasicBlockSectionsPass();

LLVM_ABI MachineFunctionPass *createBasicBlockPathCloningPass();

/// createBasicBlockMatchingAndInferencePass - This pass enables matching
/// and inference when using propeller.
LLVM_ABI MachineFunctionPass *createBasicBlockMatchingAndInferencePass();

/// createMachineBlockHashInfoPass - This pass computes basic block hashes.
LLVM_ABI MachineFunctionPass *createMachineBlockHashInfoPass();

Expand Down
1 change: 0 additions & 1 deletion llvm/include/llvm/InitializePasses.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ LLVM_ABI void initializeAlwaysInlinerLegacyPassPass(PassRegistry &);
LLVM_ABI void initializeAssignmentTrackingAnalysisPass(PassRegistry &);
LLVM_ABI void initializeAssumptionCacheTrackerPass(PassRegistry &);
LLVM_ABI void initializeAtomicExpandLegacyPass(PassRegistry &);
LLVM_ABI void initializeBasicBlockMatchingAndInferencePass(PassRegistry &);
LLVM_ABI void initializeBasicBlockPathCloningPass(PassRegistry &);
LLVM_ABI void
initializeBasicBlockSectionsProfileReaderWrapperPassPass(PassRegistry &);
Expand Down
16 changes: 0 additions & 16 deletions llvm/include/llvm/Transforms/Utils/SampleProfileInference.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,6 @@ template <typename FT> class SampleProfileInference {
SampleProfileInference(FunctionT &F, BlockEdgeMap &Successors,
BlockWeightMap &SampleBlockWeights)
: F(F), Successors(Successors), SampleBlockWeights(SampleBlockWeights) {}
SampleProfileInference(FunctionT &F, BlockEdgeMap &Successors,
BlockWeightMap &SampleBlockWeights,
EdgeWeightMap &SampleEdgeWeights)
: F(F), Successors(Successors), SampleBlockWeights(SampleBlockWeights),
SampleEdgeWeights(SampleEdgeWeights) {}

/// Apply the profile inference algorithm for a given function
void apply(BlockWeightMap &BlockWeights, EdgeWeightMap &EdgeWeights);
Expand Down Expand Up @@ -162,9 +157,6 @@ template <typename FT> class SampleProfileInference {

/// Map basic blocks to their sampled weights.
BlockWeightMap &SampleBlockWeights;

/// Map edges to their sampled weights.
EdgeWeightMap SampleEdgeWeights;
};

template <typename BT>
Expand Down Expand Up @@ -274,14 +266,6 @@ FlowFunction SampleProfileInference<BT>::createFlowFunction(
FlowJump Jump;
Jump.Source = BlockIndex[BB];
Jump.Target = BlockIndex[Succ];
auto It = SampleEdgeWeights.find(std::make_pair(BB, Succ));
if (It != SampleEdgeWeights.end()) {
Jump.HasUnknownWeight = false;
Jump.Weight = It->second;
} else {
Jump.HasUnknownWeight = true;
Jump.Weight = 0;
}
Func.Jumps.push_back(Jump);
}
}
Expand Down
195 changes: 0 additions & 195 deletions llvm/lib/CodeGen/BasicBlockMatchingAndInference.cpp

This file was deleted.

Loading
Loading