Fix compilation issues.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209342 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2014-05-21 23:51:57 +00:00
parent 189fe78e2f
commit a2f371b8eb
3 changed files with 7 additions and 4 deletions

View File

@ -777,7 +777,9 @@ bool EarlyIfConverter::runOnMachineFunction(MachineFunction &MF) {
DEBUG(dbgs() << "********** EARLY IF-CONVERSION **********\n" DEBUG(dbgs() << "********** EARLY IF-CONVERSION **********\n"
<< "********** Function: " << MF.getName() << '\n'); << "********** Function: " << MF.getName() << '\n');
// Only run if conversion if the target wants it. // Only run if conversion if the target wants it.
if (!MF.getTarget().getSubtarget().enableEarlyIfConversion()) if (!MF.getTarget()
.getSubtarget<TargetSubtargetInfo>()
.enableEarlyIfConversion())
return true; return true;
TII = MF.getTarget().getInstrInfo(); TII = MF.getTarget().getInstrInfo();

View File

@ -110,6 +110,6 @@ void ARM64Subtarget::overrideSchedPolicy(MachineSchedPolicy &Policy,
Policy.OnlyBottomUp = false; Policy.OnlyBottomUp = false;
} }
bool ARM64Subtarget::enableEarlyIfConversion() const override { bool ARM64Subtarget::enableEarlyIfConversion() const {
return EnableEarlyIfConvert; return EnableEarlyIfConvert;
} }

View File

@ -16,6 +16,7 @@
#include "llvm/IR/Attributes.h" #include "llvm/IR/Attributes.h"
#include "llvm/IR/Function.h" #include "llvm/IR/Function.h"
#include "llvm/IR/GlobalValue.h" #include "llvm/IR/GlobalValue.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h" #include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h" #include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/Host.h" #include "llvm/Support/Host.h"
@ -319,6 +320,6 @@ X86Subtarget::enablePostRAScheduler(CodeGenOpt::Level OptLevel,
} }
bool bool
X86Subtarget::enableEarlyIfConversion() const override { X86Subtarget::enableEarlyIfConversion() const {
return hasCMOV() && X86EarlyIfConv; return hasCMov() && X86EarlyIfConv;
} }