mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Enable if-conversion for ARM by default.
llvm-svn: 42156
This commit is contained in:
parent
04682bdc81
commit
267f595834
@ -25,8 +25,8 @@ using namespace llvm;
|
|||||||
|
|
||||||
static cl::opt<bool> DisableLdStOpti("disable-arm-loadstore-opti", cl::Hidden,
|
static cl::opt<bool> DisableLdStOpti("disable-arm-loadstore-opti", cl::Hidden,
|
||||||
cl::desc("Disable load store optimization pass"));
|
cl::desc("Disable load store optimization pass"));
|
||||||
static cl::opt<bool> EnableIfConversion("enable-arm-if-conversion", cl::Hidden,
|
static cl::opt<bool> DisableIfConversion("disable-arm-if-conversion",cl::Hidden,
|
||||||
cl::desc("Enable if-conversion pass"));
|
cl::desc("Disable if-conversion pass"));
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
// Register the target.
|
// Register the target.
|
||||||
@ -127,7 +127,7 @@ bool ARMTargetMachine::addPreEmitPass(FunctionPassManager &PM, bool Fast) {
|
|||||||
if (!Fast && !DisableLdStOpti && !Subtarget.isThumb())
|
if (!Fast && !DisableLdStOpti && !Subtarget.isThumb())
|
||||||
PM.add(createARMLoadStoreOptimizationPass());
|
PM.add(createARMLoadStoreOptimizationPass());
|
||||||
|
|
||||||
if (!Fast && EnableIfConversion && !Subtarget.isThumb())
|
if (!Fast && !DisableIfConversion && !Subtarget.isThumb())
|
||||||
PM.add(createIfConverterPass());
|
PM.add(createIfConverterPass());
|
||||||
|
|
||||||
PM.add(createARMConstantIslandPass());
|
PM.add(createARMConstantIslandPass());
|
||||||
|
Loading…
Reference in New Issue
Block a user