[llvm-branch-commits] [llvm] e08fea3 - [SimplifyCFGPass] Ensure that DominatorTreeWrapperPass is init'd before SimplifyCFG

Roman Lebedev via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Jan 1 14:06:15 PST 2021


Author: Roman Lebedev
Date: 2021-01-02T01:01:17+03:00
New Revision: e08fea3b240994572a4dd6b34bd846aef023a123

URL: https://github.com/llvm/llvm-project/commit/e08fea3b240994572a4dd6b34bd846aef023a123
DIFF: https://github.com/llvm/llvm-project/commit/e08fea3b240994572a4dd6b34bd846aef023a123.diff

LOG: [SimplifyCFGPass] Ensure that DominatorTreeWrapperPass is init'd before SimplifyCFG

It's probably better than hoping that it will happen to be
already initialized.

Added: 
    

Modified: 
    llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp b/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
index 35ab1e52ee2e..3efdc0e9ea86 100644
--- a/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
+++ b/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp
@@ -357,6 +357,7 @@ INITIALIZE_PASS_BEGIN(CFGSimplifyPass, "simplifycfg", "Simplify the CFG", false,
                       false)
 INITIALIZE_PASS_DEPENDENCY(TargetTransformInfoWrapperPass)
 INITIALIZE_PASS_DEPENDENCY(AssumptionCacheTracker)
+INITIALIZE_PASS_DEPENDENCY(DominatorTreeWrapperPass)
 INITIALIZE_PASS_END(CFGSimplifyPass, "simplifycfg", "Simplify the CFG", false,
                     false)
 


        


More information about the llvm-branch-commits mailing list