forked from OSchip/llvm-project
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
This commit is contained in:
parent
57ebf63da7
commit
e0874fa02f
|
|
@ -40,12 +40,18 @@
|
||||||
#include "llvm/MC/MCSectionMachO.h"
|
#include "llvm/MC/MCSectionMachO.h"
|
||||||
#include "llvm/Target/TargetOptions.h"
|
#include "llvm/Target/TargetOptions.h"
|
||||||
#include "llvm/ADT/VectorExtras.h"
|
#include "llvm/ADT/VectorExtras.h"
|
||||||
|
#include "llvm/Support/CommandLine.h"
|
||||||
#include "llvm/Support/ErrorHandling.h"
|
#include "llvm/Support/ErrorHandling.h"
|
||||||
#include "llvm/Support/MathExtras.h"
|
#include "llvm/Support/MathExtras.h"
|
||||||
#include "llvm/Support/raw_ostream.h"
|
#include "llvm/Support/raw_ostream.h"
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
using namespace llvm;
|
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,
|
static bool CC_ARM_APCS_Custom_f64(unsigned &ValNo, EVT &ValVT, EVT &LocVT,
|
||||||
CCValAssign::LocInfo &LocInfo,
|
CCValAssign::LocInfo &LocInfo,
|
||||||
ISD::ArgFlagsTy &ArgFlags,
|
ISD::ArgFlagsTy &ArgFlags,
|
||||||
|
|
@ -456,6 +462,9 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
|
||||||
// Generic (and overly aggressive) if-conversion limits.
|
// Generic (and overly aggressive) if-conversion limits.
|
||||||
setIfCvtBlockSizeLimit(10);
|
setIfCvtBlockSizeLimit(10);
|
||||||
setIfCvtDupBlockSizeLimit(2);
|
setIfCvtDupBlockSizeLimit(2);
|
||||||
|
} else if (aggressiveV7IfConvert && Subtarget->hasV7Ops()) {
|
||||||
|
setIfCvtBlockSizeLimit(3);
|
||||||
|
setIfCvtDupBlockSizeLimit(1);
|
||||||
} else if (Subtarget->hasV6Ops()) {
|
} else if (Subtarget->hasV6Ops()) {
|
||||||
setIfCvtBlockSizeLimit(2);
|
setIfCvtBlockSizeLimit(2);
|
||||||
setIfCvtDupBlockSizeLimit(1);
|
setIfCvtDupBlockSizeLimit(1);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue