forked from OSchip/llvm-project
Use internal storage for command line option.
llvm-svn: 139079
This commit is contained in:
parent
2667afa980
commit
7859d2e148
|
@ -95,12 +95,10 @@ X86TargetMachine::X86TargetMachine(const Target &T, StringRef TT,
|
|||
//===----------------------------------------------------------------------===//
|
||||
// Command line options for x86
|
||||
//===----------------------------------------------------------------------===//
|
||||
bool UseVZeroUpper;
|
||||
|
||||
static cl::opt<bool, true>
|
||||
VZeroUpper("x86-use-vzeroupper",
|
||||
static cl::opt<bool>
|
||||
UseVZeroUpper("x86-use-vzeroupper",
|
||||
cl::desc("Minimize AVX to SSE transition penalty"),
|
||||
cl::location(UseVZeroUpper), cl::init(false));
|
||||
cl::init(false));
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Pass Pipeline Configuration
|
||||
|
|
|
@ -62,7 +62,7 @@ bool VZeroUpperInserter::runOnMachineFunction(MachineFunction &MF) {
|
|||
return Changed;
|
||||
}
|
||||
|
||||
bool isCallToModuleFn(const MachineInstr *MI) {
|
||||
static bool isCallToModuleFn(const MachineInstr *MI) {
|
||||
assert(MI->getDesc().isCall() && "Isn't a call instruction");
|
||||
|
||||
for (int i = 0, e = MI->getNumOperands(); i != e; ++i) {
|
||||
|
|
Loading…
Reference in New Issue