mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
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:
parent
189fe78e2f
commit
a2f371b8eb
@ -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();
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user