summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2016-11-22 23:14:07 +0000
committerJustin Lebar <jlebar@google.com>2016-11-22 23:14:07 +0000
commit23aaf60277b540c17d438ddd1cf671b1a1e252c3 (patch)
tree36f28a4756821d2649e9f7496f5c9eac7f36c8b2 /llvm/lib/Transforms
parent820db74c1ec45e93a95ef8454f02f693fac66668 (diff)
downloadbcm5719-llvm-23aaf60277b540c17d438ddd1cf671b1a1e252c3.tar.gz
bcm5719-llvm-23aaf60277b540c17d438ddd1cf671b1a1e252c3.zip
[StructurizeCFG] Add whitespace in getAnalysisUsage.
Summary: "addRequired" and "addPreserved" look very similar when squished up next to each other -- without the newline this code looked to me like it was addRequired'ing DominatorTreeWrapperPass twice. Reviewers: arsenm Subscribers: wdng, llvm-commits Differential Revision: https://reviews.llvm.org/D26996 llvm-svn: 287720
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/StructurizeCFG.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/StructurizeCFG.cpp b/llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
index 004287f0a4f..d6ad0831f79 100644
--- a/llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
+++ b/llvm/lib/Transforms/Scalar/StructurizeCFG.cpp
@@ -255,6 +255,7 @@ public:
AU.addRequiredID(LowerSwitchID);
AU.addRequired<DominatorTreeWrapperPass>();
AU.addRequired<LoopInfoWrapperPass>();
+
AU.addPreserved<DominatorTreeWrapperPass>();
RegionPass::getAnalysisUsage(AU);
}
OpenPOWER on IntegriCloud