[CGP] Add Pass Dependencies
authorAndrew Litteken <andrew_litteken@apple.com>
Wed, 22 Jul 2020 17:15:36 +0000 (10:15 -0700)
committerAndrew Litteken <andrew_litteken@apple.com>
Wed, 22 Jul 2020 19:02:53 +0000 (12:02 -0700)
commitbcbc6117b5d944bca8519dd34131cda1e83789fe
tree20167c5698ec1ca29bc6815406a4d60412673e49
parent16779f8084541b626578a4bda2f51ee741dcd7bf
[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
llvm/lib/CodeGen/CodeGenPrepare.cpp