mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-01 02:33:44 +00:00
[PowerPC] Add a flag for experimenting with subreg liveness tracking
This cannot yet be enabled by default, it causes ~50 miscompiles in the test suite. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225497 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4e98296890
commit
cc7ea4df1e
@ -19,6 +19,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/Host.h"
|
#include "llvm/Support/Host.h"
|
||||||
#include "llvm/Support/TargetRegistry.h"
|
#include "llvm/Support/TargetRegistry.h"
|
||||||
#include "llvm/Target/TargetMachine.h"
|
#include "llvm/Target/TargetMachine.h"
|
||||||
@ -32,6 +33,9 @@ using namespace llvm;
|
|||||||
#define GET_SUBTARGETINFO_CTOR
|
#define GET_SUBTARGETINFO_CTOR
|
||||||
#include "PPCGenSubtargetInfo.inc"
|
#include "PPCGenSubtargetInfo.inc"
|
||||||
|
|
||||||
|
static cl::opt<bool> UseSubRegLiveness("ppc-track-subreg-liveness",
|
||||||
|
cl::desc("Enable subregister liveness tracking for PPC"), cl::Hidden);
|
||||||
|
|
||||||
/// Return the datalayout string of a subtarget.
|
/// Return the datalayout string of a subtarget.
|
||||||
static std::string getDataLayoutString(const Triple &T) {
|
static std::string getDataLayoutString(const Triple &T) {
|
||||||
bool is64Bit = T.getArch() == Triple::ppc64 || T.getArch() == Triple::ppc64le;
|
bool is64Bit = T.getArch() == Triple::ppc64 || T.getArch() == Triple::ppc64le;
|
||||||
@ -234,3 +238,7 @@ bool PPCSubtarget::useAA() const {
|
|||||||
return needsAggressiveScheduling(DarwinDirective);
|
return needsAggressiveScheduling(DarwinDirective);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool PPCSubtarget::enableSubRegLiveness() const {
|
||||||
|
return UseSubRegLiveness;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -259,6 +259,8 @@ public:
|
|||||||
MachineInstr *end,
|
MachineInstr *end,
|
||||||
unsigned NumRegionInstrs) const override;
|
unsigned NumRegionInstrs) const override;
|
||||||
bool useAA() const override;
|
bool useAA() const override;
|
||||||
|
|
||||||
|
bool enableSubRegLiveness() const override;
|
||||||
};
|
};
|
||||||
} // End llvm namespace
|
} // End llvm namespace
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user