commit | 1dd3d83c5e56370acb4736182382db4deb70738e | [log] [tgz] |
---|---|---|
author | Cong Hou <congh@google.com> | Thu Jul 16 23:23:35 2015 +0000 |
committer | Cong Hou <congh@google.com> | Thu Jul 16 23:23:35 2015 +0000 |
tree | 731852419198ec9625b955349dc29e40498e58cb | |
parent | 650d9427f075becaa35a675af8169f60eeb8e756 [diff] |
Add new constructors for LoopInfo/DominatorTree/BFI/BPI Those new constructors make it more natural to construct an object for a function. For example, previously to build a LoopInfo for a function, we need four statements: DominatorTree DT; LoopInfo LI; DT.recalculate(F); LI.analyze(DT); Now we only need one statement: LoopInfo LI(DominatorTree(F)); http://reviews.llvm.org/D11274 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242486 91177308-0d34-0410-b5e6-96231b3b80d8