aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar/JumpThreading.cpp
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
commit5a0858228d368aaf25e514c8fbb857c0808c22dc (patch)
tree2e85efb2883acae584240e94dd68a82c404d85bb /lib/Transforms/Scalar/JumpThreading.cpp
parentb0585b20d136dd5ac675f7664dcb84d76c04ec26 (diff)
downloadexternal_llvm-5a0858228d368aaf25e514c8fbb857c0808c22dc.zip
external_llvm-5a0858228d368aaf25e514c8fbb857c0808c22dc.tar.gz
external_llvm-5a0858228d368aaf25e514c8fbb857c0808c22dc.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/Transforms/Scalar/JumpThreading.cpp')
-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;