[mips] SelectionDAGISel subclasses now follow the optimization level.
authorDaniel Sanders <daniel.sanders@imgtec.com>
Thu, 14 Jul 2016 13:25:22 +0000 (13:25 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Thu, 14 Jul 2016 13:25:22 +0000 (13:25 +0000)
commit46fe6550ac395447083d51e9ef3e35bfac153df2
treeef8b6a62fe663a0a08a256ba1dd09a97fa799af3
parent56a46bc68058e78c6309f46e5aafd18edc72b553
[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
llvm/lib/Target/Mips/Mips16ISelDAGToDAG.cpp
llvm/lib/Target/Mips/Mips16ISelDAGToDAG.h
llvm/lib/Target/Mips/MipsISelDAGToDAG.h
llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
llvm/lib/Target/Mips/MipsSEISelDAGToDAG.h
llvm/lib/Target/Mips/MipsTargetMachine.cpp
llvm/test/CodeGen/Mips/selectiondag-optlevel.ll [new file with mode: 0644]