aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Scalar/JumpThreading.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-07-26 18:48:03 +0000
committerOwen Anderson <resistor@mac.com>2010-07-26 18:48:03 +0000
commitaa7f66ba6798ea946baa622b55679597dab60742 (patch)
treede58fd21bec40f79c95e8f5a15ebc57d4ddcd612 /llvm/lib/Transforms/Scalar/JumpThreading.cpp
parent6bcea068db4e159e0a908b50c01df2d33a5113e4 (diff)
downloadllvm-aa7f66ba6798ea946baa622b55679597dab60742.zip
llvm-aa7f66ba6798ea946baa622b55679597dab60742.tar.gz
llvm-aa7f66ba6798ea946baa622b55679597dab60742.tar.bz2
Add an initial implementation of LazyValueInfo updating for JumpThreading. Disabled for now.
llvm-svn: 109424
Diffstat (limited to 'llvm/lib/Transforms/Scalar/JumpThreading.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/JumpThreading.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/JumpThreading.cpp b/llvm/lib/Transforms/Scalar/JumpThreading.cpp
index b07b5d9..5dabcf0 100644
--- a/llvm/lib/Transforms/Scalar/JumpThreading.cpp
+++ b/llvm/lib/Transforms/Scalar/JumpThreading.cpp
@@ -1314,6 +1314,9 @@ bool JumpThreading::ThreadEdge(BasicBlock *BB,
<< ", across block:\n "
<< *BB << "\n");
+ if (LVI)
+ LVI->threadEdge(PredBB, BB, SuccBB);
+
// We are going to have to map operands from the original BB block to the new
// copy of the block 'NewBB'. If there are PHI nodes in BB, evaluate them to
// account for entry from PredBB.