mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
Use internal storage for command line option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139079 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -95,12 +95,10 @@ X86TargetMachine::X86TargetMachine(const Target &T, StringRef TT,
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Command line options for x86
|
// Command line options for x86
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
bool UseVZeroUpper;
|
static cl::opt<bool>
|
||||||
|
UseVZeroUpper("x86-use-vzeroupper",
|
||||||
static cl::opt<bool, true>
|
|
||||||
VZeroUpper("x86-use-vzeroupper",
|
|
||||||
cl::desc("Minimize AVX to SSE transition penalty"),
|
cl::desc("Minimize AVX to SSE transition penalty"),
|
||||||
cl::location(UseVZeroUpper), cl::init(false));
|
cl::init(false));
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// Pass Pipeline Configuration
|
// Pass Pipeline Configuration
|
||||||
|
@@ -62,7 +62,7 @@ bool VZeroUpperInserter::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
return Changed;
|
return Changed;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isCallToModuleFn(const MachineInstr *MI) {
|
static bool isCallToModuleFn(const MachineInstr *MI) {
|
||||||
assert(MI->getDesc().isCall() && "Isn't a call instruction");
|
assert(MI->getDesc().isCall() && "Isn't a call instruction");
|
||||||
|
|
||||||
for (int i = 0, e = MI->getNumOperands(); i != e; ++i) {
|
for (int i = 0, e = MI->getNumOperands(); i != e; ++i) {
|
||||||
|
Reference in New Issue
Block a user