diff options
author | Owen Anderson <resistor@mac.com> | 2010-07-26 18:48:03 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-07-26 18:48:03 +0000 |
commit | cfa7fb6df5aaaf9e54fe97633167b44782224e45 (patch) | |
tree | 544bf6f398def6abccc0871d2eebe42ab45567a2 /lib/Transforms/Scalar/JumpThreading.cpp | |
parent | b5a0ef99f8e2bd48f2fb2a3221d296d48f1d5940 (diff) |
Add an initial implementation of LazyValueInfo updating for JumpThreading. Disabled for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109424 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/JumpThreading.cpp')
-rw-r--r-- | lib/Transforms/Scalar/JumpThreading.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/JumpThreading.cpp b/lib/Transforms/Scalar/JumpThreading.cpp index b07b5d9089..5dabcf0551 100644 --- a/lib/Transforms/Scalar/JumpThreading.cpp +++ b/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. |