mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-27 05:32:22 +00:00
Remove HexagonTargetMachine::addPassesForOptimizations; it is not needed any more.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207800 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
53e72030fd
commit
6010d958a0
@ -79,20 +79,6 @@ HexagonTargetMachine::HexagonTargetMachine(const Target &T, StringRef TT,
|
||||
initAsmInfo();
|
||||
}
|
||||
|
||||
// addPassesForOptimizations - Allow the backend (target) to add Target
|
||||
// Independent Optimization passes to the Pass Manager.
|
||||
bool HexagonTargetMachine::addPassesForOptimizations(PassManagerBase &PM) {
|
||||
if (getOptLevel() != CodeGenOpt::None) {
|
||||
PM.add(createConstantPropagationPass());
|
||||
PM.add(createLoopSimplifyPass());
|
||||
PM.add(createDeadCodeEliminationPass());
|
||||
PM.add(createConstantPropagationPass());
|
||||
PM.add(createLoopUnrollPass());
|
||||
PM.add(createLoopStrengthReducePass());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
namespace {
|
||||
/// Hexagon Code Generator Pass Configuration Options.
|
||||
class HexagonPassConfig : public TargetPassConfig {
|
||||
|
@ -71,8 +71,6 @@ public:
|
||||
const DataLayout *getDataLayout() const override { return &DL; }
|
||||
static unsigned getModuleMatchQuality(const Module &M);
|
||||
|
||||
// Pass Pipeline Configuration.
|
||||
virtual bool addPassesForOptimizations(PassManagerBase &PM) final;
|
||||
TargetPassConfig *createPassConfig(PassManagerBase &PM) override;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user