summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelLowering.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-03-24 00:03:13 +0000
committerJim Grosbach <grosbach@apple.com>2010-03-24 00:03:13 +0000
commite0874fa02fea992e7f404ebae6599c15bb37d56c (patch)
treeea16cd229472653e658b98097715df37ea281133 /llvm/lib/Target/ARM/ARMISelLowering.cpp
parent57ebf63da7497f5dab2c900b70ee174538e5b399 (diff)
downloadbcm5719-llvm-e0874fa02fea992e7f404ebae6599c15bb37d56c.tar.gz
bcm5719-llvm-e0874fa02fea992e7f404ebae6599c15bb37d56c.zip
try being more permissive for if-conversion on ARM V7. see what the nightly
test run permformance numbers say as to whether it helps. llvm-svn: 99355
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 0d0a004c284..f05041b41e6 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -40,12 +40,18 @@
#include "llvm/MC/MCSectionMachO.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/ADT/VectorExtras.h"
+#include "llvm/Support/CommandLine.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/raw_ostream.h"
#include <sstream>
using namespace llvm;
+static cl::opt<bool>
+aggressiveV7IfConvert("arm-aggressive-v7-ifcvt", cl::Hidden,
+ cl::desc("Enable more liberal if-converstion for v7"),
+ cl::init(false));
+
static bool CC_ARM_APCS_Custom_f64(unsigned &ValNo, EVT &ValVT, EVT &LocVT,
CCValAssign::LocInfo &LocInfo,
ISD::ArgFlagsTy &ArgFlags,
@@ -456,6 +462,9 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
// Generic (and overly aggressive) if-conversion limits.
setIfCvtBlockSizeLimit(10);
setIfCvtDupBlockSizeLimit(2);
+ } else if (aggressiveV7IfConvert && Subtarget->hasV7Ops()) {
+ setIfCvtBlockSizeLimit(3);
+ setIfCvtDupBlockSizeLimit(1);
} else if (Subtarget->hasV6Ops()) {
setIfCvtBlockSizeLimit(2);
setIfCvtDupBlockSizeLimit(1);
OpenPOWER on IntegriCloud