From 17207ddf38b92245d6eda9e58cf9bf75f2a88e80 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Thu, 20 Sep 2007 00:48:22 +0000 Subject: [PATCH] Enable if-conversion for ARM by default. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42156 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMTargetMachine.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Target/ARM/ARMTargetMachine.cpp b/lib/Target/ARM/ARMTargetMachine.cpp index d5f0ffadbeb..4794cd46a01 100644 --- a/lib/Target/ARM/ARMTargetMachine.cpp +++ b/lib/Target/ARM/ARMTargetMachine.cpp @@ -25,8 +25,8 @@ using namespace llvm; static cl::opt DisableLdStOpti("disable-arm-loadstore-opti", cl::Hidden, cl::desc("Disable load store optimization pass")); -static cl::opt EnableIfConversion("enable-arm-if-conversion", cl::Hidden, - cl::desc("Enable if-conversion pass")); +static cl::opt DisableIfConversion("disable-arm-if-conversion",cl::Hidden, + cl::desc("Disable if-conversion pass")); namespace { // Register the target. @@ -127,7 +127,7 @@ bool ARMTargetMachine::addPreEmitPass(FunctionPassManager &PM, bool Fast) { if (!Fast && !DisableLdStOpti && !Subtarget.isThumb()) PM.add(createARMLoadStoreOptimizationPass()); - if (!Fast && EnableIfConversion && !Subtarget.isThumb()) + if (!Fast && !DisableIfConversion && !Subtarget.isThumb()) PM.add(createIfConverterPass()); PM.add(createARMConstantIslandPass());