diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-11 00:21:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-11 00:21:58 +0000 |
commit | 3a2ae908fe89355afef66aea67f0322a59eddc38 (patch) | |
tree | 1370a27794ddac7692c209d859719ccd49caedf0 | |
parent | c4e03b7ac79da5b2ee64956e52c727770c7dbbf1 (diff) | |
download | bcm5719-llvm-3a2ae908fe89355afef66aea67f0322a59eddc38.tar.gz bcm5719-llvm-3a2ae908fe89355afef66aea67f0322a59eddc38.zip |
add a fixme
llvm-svn: 86766
-rw-r--r-- | llvm/lib/Transforms/Scalar/JumpThreading.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/JumpThreading.cpp b/llvm/lib/Transforms/Scalar/JumpThreading.cpp index cbd8702a422..065f6a2ee4e 100644 --- a/llvm/lib/Transforms/Scalar/JumpThreading.cpp +++ b/llvm/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; |