summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
diff options
context:
space:
mode:
authorJames Molloy <james.molloy@arm.com>2014-08-06 13:31:32 +0000
committerJames Molloy <james.molloy@arm.com>2014-08-06 13:31:32 +0000
commit99917946da2c41dfe60790cf51d03e7f80beed8c (patch)
tree2b602f80fdd0edfabdc575b1003f1abd14b272e1 /llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
parent316ab38ed82dfdcd673be2675e61704478fb8917 (diff)
downloadbcm5719-llvm-99917946da2c41dfe60790cf51d03e7f80beed8c.tar.gz
bcm5719-llvm-99917946da2c41dfe60790cf51d03e7f80beed8c.zip
[AArch64] Add a testcase for r214957.
llvm-svn: 214965
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64TargetMachine.cpp')
-rw-r--r--llvm/lib/Target/AArch64/AArch64TargetMachine.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp b/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
index 2e9bb0cd823..561bb24c6ab 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
+++ b/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
@@ -59,6 +59,12 @@ EnableAtomicTidy("aarch64-atomic-cfg-tidy", cl::Hidden,
" to make use of cmpxchg flow-based information"),
cl::init(true));
+static cl::opt<bool>
+EnableEarlyIfConversion("aarch64-enable-early-ifcvt", cl::Hidden,
+ cl::desc("Run early if-conversion"),
+ cl::init(true));
+
+
extern "C" void LLVMInitializeAArch64Target() {
// Register the target.
RegisterTargetMachine<AArch64leTargetMachine> X(TheAArch64leTarget);
@@ -174,7 +180,8 @@ bool AArch64PassConfig::addInstSelector() {
bool AArch64PassConfig::addILPOpts() {
if (EnableCCMP)
addPass(createAArch64ConditionalCompares());
- addPass(&EarlyIfConverterID);
+ if (EnableEarlyIfConversion)
+ addPass(&EarlyIfConverterID);
if (EnableStPairSuppress)
addPass(createAArch64StorePairSuppressPass());
return true;
OpenPOWER on IntegriCloud