diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-05 00:57:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-05 00:57:45 +0000 |
commit | 5e1b23192184aadbfbd79a31641eb3c0c0ecdc05 (patch) | |
tree | aa9afc0730d1fd37fd9cea66896d8bf1eac2bf3e /lib/Transforms/Utils/LoopSimplify.cpp | |
parent | 9acbd611ec13fabf3c13f20161c0de576ea1ad60 (diff) |
This code can handle non-dominating instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22667 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LoopSimplify.cpp')
-rw-r--r-- | lib/Transforms/Utils/LoopSimplify.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/LoopSimplify.cpp b/lib/Transforms/Utils/LoopSimplify.cpp index 5ddcc4163d..da1a6550a4 100644 --- a/lib/Transforms/Utils/LoopSimplify.cpp +++ b/lib/Transforms/Utils/LoopSimplify.cpp @@ -256,7 +256,7 @@ BasicBlock *LoopSimplify::SplitBlockPredecessors(BasicBlock *BB, PN->addIncoming(InVal, NewBB); // Can we eliminate this phi node now? - if (Value *V = PN->hasConstantValue()) { + if (Value *V = PN->hasConstantValue(true)) { if (!isa<Instruction>(V) || getAnalysis<DominatorSet>().dominates(cast<Instruction>(V), PN)) { PN->replaceAllUsesWith(V); |