diff options
author | Devang Patel <dpatel@apple.com> | 2007-08-17 21:59:16 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-08-17 21:59:16 +0000 |
commit | 96bf524b531fd404b118fad7bbe410e9aceeaa5d (patch) | |
tree | be25bf6cf25aae8fdc046f23c8aeabc6eaf31d6d /lib/Transforms/Utils | |
parent | 3e20bba5eb5df2fdd3e6655c8470084cf05032d4 (diff) | |
download | external_llvm-96bf524b531fd404b118fad7bbe410e9aceeaa5d.zip external_llvm-96bf524b531fd404b118fad7bbe410e9aceeaa5d.tar.gz external_llvm-96bf524b531fd404b118fad7bbe410e9aceeaa5d.tar.bz2 |
When one branch of condition is eliminated then head of the other
branch is not necessary immediate dominators of merge blcok in all cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41144 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils')
-rw-r--r-- | lib/Transforms/Utils/LCSSA.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/LCSSA.cpp b/lib/Transforms/Utils/LCSSA.cpp index 466136d..465214c 100644 --- a/lib/Transforms/Utils/LCSSA.cpp +++ b/lib/Transforms/Utils/LCSSA.cpp @@ -107,7 +107,8 @@ bool LCSSA::runOnLoop(Loop *L, LPPassManager &LPM) { LI = &LPM.getAnalysis<LoopInfo>(); DT = &getAnalysis<DominatorTree>(); - + DominanceFrontier *DF = getAnalysisToUpdate<DominanceFrontier>(); + // Speed up queries by creating a sorted list of blocks LoopBlocks.clear(); LoopBlocks.insert(LoopBlocks.end(), L->block_begin(), L->block_end()); |