diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2019-01-12 18:36:22 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2019-01-12 18:36:22 +0000 |
| commit | b17d2136eae4d9003e2a04f89afc6cd6a56c966a (patch) | |
| tree | cabe93d17ad76f52cbc91546cf91411fbc333da4 /llvm/lib/Transforms/Scalar/LICM.cpp | |
| parent | e5cd5b0cd1e8cda18cdbcd9fade98d21579294d9 (diff) | |
| download | bcm5719-llvm-b17d2136eae4d9003e2a04f89afc6cd6a56c966a.tar.gz bcm5719-llvm-b17d2136eae4d9003e2a04f89afc6cd6a56c966a.zip | |
Give helper classes/functions local linkage. NFC.
llvm-svn: 351016
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LICM.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LICM.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/LICM.cpp b/llvm/lib/Transforms/Scalar/LICM.cpp index 44ef6ea73ff..d204654c391 100644 --- a/llvm/lib/Transforms/Scalar/LICM.cpp +++ b/llvm/lib/Transforms/Scalar/LICM.cpp @@ -480,6 +480,7 @@ bool llvm::sinkRegion(DomTreeNode *N, AliasAnalysis *AA, LoopInfo *LI, return Changed; } +namespace { // This is a helper class for hoistRegion to make it able to hoist control flow // in order to be able to hoist phis. The way this works is that we initially // start hoisting to the loop preheader, and when we see a loop invariant branch @@ -706,6 +707,7 @@ public: return HoistDestinationMap[BB]; } }; +} // namespace /// Walk the specified region of the CFG (defined by all blocks dominated by /// the specified block, and that are in the current loop) in depth first |

