mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 06:25:18 +00:00
Make early if conversion dependent upon the subtarget and add
a subtarget hook to enable. Unconditionally add to the pass pipeline for targets that might want to use it. No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209340 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -126,12 +126,6 @@ UseVZeroUpper("x86-use-vzeroupper", cl::Hidden,
|
||||
cl::desc("Minimize AVX to SSE transition penalty"),
|
||||
cl::init(true));
|
||||
|
||||
// Temporary option to control early if-conversion for x86 while adding machine
|
||||
// models.
|
||||
static cl::opt<bool>
|
||||
X86EarlyIfConv("x86-early-ifcvt", cl::Hidden,
|
||||
cl::desc("Enable early if-conversion on X86"));
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// X86 Analysis Pass Setup
|
||||
//===----------------------------------------------------------------------===//
|
||||
@@ -192,11 +186,8 @@ bool X86PassConfig::addInstSelector() {
|
||||
}
|
||||
|
||||
bool X86PassConfig::addILPOpts() {
|
||||
if (X86EarlyIfConv && getX86Subtarget().hasCMov()) {
|
||||
addPass(&EarlyIfConverterID);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
addPass(&EarlyIfConverterID);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool X86PassConfig::addPreRegAlloc() {
|
||||
|
Reference in New Issue
Block a user