[PATCH] D50511: [ARM] ParallelDSP: add option to disable the pass
Sjoerd Meijer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 9 07:26:03 PDT 2018
SjoerdMeijer created this revision.
SjoerdMeijer added a reviewer: samparker.
Herald added a reviewer: javed.absar.
Herald added subscribers: chrib, kristof.beyls.
Seems useful for debugging purposes.
https://reviews.llvm.org/D50511
Files:
lib/Target/ARM/ARMParallelDSP.cpp
Index: lib/Target/ARM/ARMParallelDSP.cpp
===================================================================
--- lib/Target/ARM/ARMParallelDSP.cpp
+++ lib/Target/ARM/ARMParallelDSP.cpp
@@ -42,6 +42,10 @@
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 @@
}
bool runOnLoop(Loop *TheLoop, LPPassManager &) override {
+ if (DisableParallelDSP)
+ return false;
L = TheLoop;
SE = &getAnalysis<ScalarEvolutionWrapperPass>().getSE();
AA = &getAnalysis<AAResultsWrapperPass>().getAAResults();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50511.159923.patch
Type: text/x-patch
Size: 791 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180809/04600934/attachment.bin>
More information about the llvm-commits
mailing list