From 267f5958344ca38c3d8830338b15912869d170a5 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. llvm-svn: 42156 --- 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());