summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2019-08-14 03:54:18 +0000
committerJohn McCall <rjmccall@apple.com>2019-08-14 03:54:18 +0000
commit3bbf207fbc56d982d17a5e111f56dbdc4f743774 (patch)
tree2f52803aea3e8ebecc1a46c308b37c29bebe8d58
parent5f60b68c68c00137304be0e0016e43d02066b2fd (diff)
downloadbcm5719-llvm-3bbf207fbc56d982d17a5e111f56dbdc4f743774.tar.gz
bcm5719-llvm-3bbf207fbc56d982d17a5e111f56dbdc4f743774.zip
Don't run a full verifier pass in coro-splitting's private pipeline.
Potentially addresses rdar://49022293. llvm-svn: 368797
-rw-r--r--llvm/lib/Transforms/Coroutines/CoroSplit.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Coroutines/CoroSplit.cpp b/llvm/lib/Transforms/Coroutines/CoroSplit.cpp
index 01357f0c8bd..f7d40a3be42 100644
--- a/llvm/lib/Transforms/Coroutines/CoroSplit.cpp
+++ b/llvm/lib/Transforms/Coroutines/CoroSplit.cpp
@@ -865,9 +865,14 @@ static void updateCoroFrame(coro::Shape &Shape, Function *ResumeFn,
static void postSplitCleanup(Function &F) {
removeUnreachableBlocks(F);
+
+ // For now, we do a mandatory verification step because we don't
+ // entirely trust this pass. Note that we don't want to add a verifier
+ // pass to FPM below because it will also verify all the global data.
+ verifyFunction(F);
+
legacy::FunctionPassManager FPM(F.getParent());
- FPM.add(createVerifierPass());
FPM.add(createSCCPPass());
FPM.add(createCFGSimplificationPass());
FPM.add(createEarlyCSEPass());
OpenPOWER on IntegriCloud