mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +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"
|
||||
<< "********** Function: " << MF.getName() << '\n');
|
||||
// Only run if conversion if the target wants it.
|
||||
if (!MF.getTarget().getSubtarget().enableEarlyIfConversion())
|
||||
if (!MF.getTarget()
|
||||
.getSubtarget<TargetSubtargetInfo>()
|
||||
.enableEarlyIfConversion())
|
||||
return true;
|
||||
|
||||
TII = MF.getTarget().getInstrInfo();
|
||||
|
@ -110,6 +110,6 @@ void ARM64Subtarget::overrideSchedPolicy(MachineSchedPolicy &Policy,
|
||||
Policy.OnlyBottomUp = false;
|
||||
}
|
||||
|
||||
bool ARM64Subtarget::enableEarlyIfConversion() const override {
|
||||
bool ARM64Subtarget::enableEarlyIfConversion() const {
|
||||
return EnableEarlyIfConvert;
|
||||
}
|
||||
|
@ -16,6 +16,7 @@
|
||||
#include "llvm/IR/Attributes.h"
|
||||
#include "llvm/IR/Function.h"
|
||||
#include "llvm/IR/GlobalValue.h"
|
||||
#include "llvm/Support/CommandLine.h"
|
||||
#include "llvm/Support/Debug.h"
|
||||
#include "llvm/Support/ErrorHandling.h"
|
||||
#include "llvm/Support/Host.h"
|
||||
@ -319,6 +320,6 @@ X86Subtarget::enablePostRAScheduler(CodeGenOpt::Level OptLevel,
|
||||
}
|
||||
|
||||
bool
|
||||
X86Subtarget::enableEarlyIfConversion() const override {
|
||||
return hasCMOV() && X86EarlyIfConv;
|
||||
X86Subtarget::enableEarlyIfConversion() const {
|
||||
return hasCMov() && X86EarlyIfConv;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user