summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSjoerd Meijer <sjoerd.meijer@arm.com>2018-08-14 07:43:49 +0000
committerSjoerd Meijer <sjoerd.meijer@arm.com>2018-08-14 07:43:49 +0000
commit3c859b3ec3fe20f0878c7e1c9ff66172ba3345ac (patch)
tree685f7afd9fd3b8f455cb3e306d2a92dc9524a63f /llvm/lib
parent4657db1402877a14b89698b93a047ad184fd417f (diff)
downloadbcm5719-llvm-3c859b3ec3fe20f0878c7e1c9ff66172ba3345ac.tar.gz
bcm5719-llvm-3c859b3ec3fe20f0878c7e1c9ff66172ba3345ac.zip
[ARM] ParallelDSP: add option to enable/disable the pass
Differential Revision: https://reviews.llvm.org/D50511 llvm-svn: 339645
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/ARMParallelDSP.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMParallelDSP.cpp b/llvm/lib/Target/ARM/ARMParallelDSP.cpp
index 9d5478b76c1..30b02b3c0fb 100644
--- a/llvm/lib/Target/ARM/ARMParallelDSP.cpp
+++ b/llvm/lib/Target/ARM/ARMParallelDSP.cpp
@@ -42,6 +42,10 @@ using namespace PatternMatch;
STATISTIC(NumSMLAD , "Number of smlad instructions generated");
+static cl::opt<bool>
+DisableParallelDSP("disable-arm-parallel-dsp", cl::Hidden, cl::init(false),
+ cl::desc("Disable the ARM Parallel DSP pass"));
+
namespace {
struct OpChain;
struct BinOpChain;
@@ -149,6 +153,8 @@ namespace {
}
bool runOnLoop(Loop *TheLoop, LPPassManager &) override {
+ if (DisableParallelDSP)
+ return false;
L = TheLoop;
SE = &getAnalysis<ScalarEvolutionWrapperPass>().getSE();
AA = &getAnalysis<AAResultsWrapperPass>().getAAResults();
OpenPOWER on IntegriCloud