diff options
author | Andrew Litteken <andrew_litteken@apple.com> | 2020-07-22 10:15:36 -0700 |
---|---|---|
committer | Andrew Litteken <andrew_litteken@apple.com> | 2020-07-22 12:02:53 -0700 |
commit | bcbc6117b5d944bca8519dd34131cda1e83789fe (patch) | |
tree | 20167c5698ec1ca29bc6815406a4d60412673e49 /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | 16779f8084541b626578a4bda2f51ee741dcd7bf (diff) | |
download | llvm-bcbc6117b5d944bca8519dd34131cda1e83789fe.zip llvm-bcbc6117b5d944bca8519dd34131cda1e83789fe.tar.gz llvm-bcbc6117b5d944bca8519dd34131cda1e83789fe.tar.bz2 |
[CGP] Add Pass Dependencies
Add pass dependecies:
- TargetTransformInfoWrapperPass
- TargetPassConfig
- LoopInfoWrapperPass
- TargetLibraryInfoWrapperPass
To fix inconsistencies when passes are added to the pipeline.
Reviewers: efriedma, kmclaughlin, paquette
Reviewed By: efriedma
Differential Revision: https://reviews.llvm.org/D84346
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGenPrepare.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index 465ba08..42cffaf 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -439,7 +439,11 @@ char CodeGenPrepare::ID = 0; INITIALIZE_PASS_BEGIN(CodeGenPrepare, DEBUG_TYPE, "Optimize for code generation", false, false) +INITIALIZE_PASS_DEPENDENCY(LoopInfoWrapperPass) INITIALIZE_PASS_DEPENDENCY(ProfileSummaryInfoWrapperPass) +INITIALIZE_PASS_DEPENDENCY(TargetLibraryInfoWrapperPass) +INITIALIZE_PASS_DEPENDENCY(TargetPassConfig) +INITIALIZE_PASS_DEPENDENCY(TargetTransformInfoWrapperPass) INITIALIZE_PASS_END(CodeGenPrepare, DEBUG_TYPE, "Optimize for code generation", false, false) |