summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsSEISelDAGToDAG.h
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2016-07-14 13:25:22 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2016-07-14 13:25:22 +0000
commit46fe6550ac395447083d51e9ef3e35bfac153df2 (patch)
treeef8b6a62fe663a0a08a256ba1dd09a97fa799af3 /llvm/lib/Target/Mips/MipsSEISelDAGToDAG.h
parent56a46bc68058e78c6309f46e5aafd18edc72b553 (diff)
downloadbcm5719-llvm-46fe6550ac395447083d51e9ef3e35bfac153df2.tar.gz
bcm5719-llvm-46fe6550ac395447083d51e9ef3e35bfac153df2.zip
[mips] SelectionDAGISel subclasses now follow the optimization level.
Summary: It was recently discovered that, for Mips's SelectionDAGISel subclasses, all optimization levels caused SelectionDAGISel to behave like -O2. This change adds the necessary plumbing to initialize the optimization level. Reviewers: andrew.w.kaylor Subscribers: andrew.w.kaylor, sdardis, dean, llvm-commits, vradosavljevic, petarj, qcolombet, probinson, dsanders Differential Revision: https://reviews.llvm.org/D14900 llvm-svn: 275410
Diffstat (limited to 'llvm/lib/Target/Mips/MipsSEISelDAGToDAG.h')
-rw-r--r--llvm/lib/Target/Mips/MipsSEISelDAGToDAG.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Target/Mips/MipsSEISelDAGToDAG.h b/llvm/lib/Target/Mips/MipsSEISelDAGToDAG.h
index 6a09e516ece..0f08b72a334 100644
--- a/llvm/lib/Target/Mips/MipsSEISelDAGToDAG.h
+++ b/llvm/lib/Target/Mips/MipsSEISelDAGToDAG.h
@@ -21,7 +21,8 @@ namespace llvm {
class MipsSEDAGToDAGISel : public MipsDAGToDAGISel {
public:
- explicit MipsSEDAGToDAGISel(MipsTargetMachine &TM) : MipsDAGToDAGISel(TM) {}
+ explicit MipsSEDAGToDAGISel(MipsTargetMachine &TM, CodeGenOpt::Level OL)
+ : MipsDAGToDAGISel(TM, OL) {}
private:
@@ -131,8 +132,8 @@ private:
std::vector<SDValue> &OutOps) override;
};
-FunctionPass *createMipsSEISelDag(MipsTargetMachine &TM);
-
+FunctionPass *createMipsSEISelDag(MipsTargetMachine &TM,
+ CodeGenOpt::Level OptLevel);
}
#endif
OpenPOWER on IntegriCloud