aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-11 00:21:58 +0000
committerChris Lattner <sabre@nondot.org>2009-11-11 00:21:58 +0000
commitb14b88a40ab12996c2982c4bc10fd35bb9a371d4 (patch)
tree2e85efb2883acae584240e94dd68a82c404d85bb /lib
parent68cf6042c14ac649c6861bbd2d00993b15a5dfa6 (diff)
downloadexternal_llvm-b14b88a40ab12996c2982c4bc10fd35bb9a371d4.zip
external_llvm-b14b88a40ab12996c2982c4bc10fd35bb9a371d4.tar.gz
external_llvm-b14b88a40ab12996c2982c4bc10fd35bb9a371d4.tar.bz2
add a fixme
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86766 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Scalar/JumpThreading.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/JumpThreading.cpp b/lib/Transforms/Scalar/JumpThreading.cpp
index cbd8702..065f6a2 100644
--- a/lib/Transforms/Scalar/JumpThreading.cpp
+++ b/lib/Transforms/Scalar/JumpThreading.cpp
@@ -169,6 +169,10 @@ static unsigned getJumpThreadDuplicationCost(const BasicBlock *BB) {
/// Ignore PHI nodes, these will be flattened when duplication happens.
BasicBlock::const_iterator I = BB->getFirstNonPHI();
+ // FIXME: THREADING will delete values that are just used to compute the
+ // branch, so they shouldn't count against the duplication cost.
+
+
// Sum up the cost of each instruction until we get to the terminator. Don't
// include the terminator because the copy won't include it.
unsigned Size = 0;