Pass optLevel to XCoreDAGToDAGISel.

Patch by Kyriakos Georgiou.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146656 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Richard Osborne
2011-12-15 15:18:35 +00:00
parent 3ba19b1045
commit 27a7859bf7
3 changed files with 8 additions and 6 deletions

View File

@ -35,7 +35,7 @@ XCoreTargetMachine::XCoreTargetMachine(const Target &T, StringRef TT,
}
bool XCoreTargetMachine::addInstSelector(PassManagerBase &PM) {
PM.add(createXCoreISelDag(*this));
PM.add(createXCoreISelDag(*this, getOptLevel()));
return false;
}