projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68cf604
)
add a fixme
author
Chris Lattner
<sabre@nondot.org>
Wed, 11 Nov 2009 00:21:58 +0000
(
00:21
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 11 Nov 2009 00:21:58 +0000
(
00:21
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86766
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/JumpThreading.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/JumpThreading.cpp
b/lib/Transforms/Scalar/JumpThreading.cpp
index cbd8702a4227fbac7970002ecb71779c1b1bdefa..065f6a2ee4e8205dfb223f077bb84727e16e64e3 100644
(file)
--- 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;