projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ae0736
)
Fix this condition I accidentally inverted.
author
Dan Gohman
<gohman@apple.com>
Fri, 24 Jul 2009 18:31:07 +0000
(18:31 +0000)
committer
Dan Gohman
<gohman@apple.com>
Fri, 24 Jul 2009 18:31:07 +0000
(18:31 +0000)
llvm-svn: 76988
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
index 603e09157436050c2510ac01263f92f6dd963ea3..e28ed38edda2e524a02646eead3a9182bb577c33 100644
(file)
--- a/
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
+++ b/
llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
@@
-118,7
+118,7
@@
bool DSE::runOnBasicBlock(BasicBlock &BB) {
// If this is a store-store dependence, then the previous store is dead so
// long as this store is at least as big as it.
if (StoreInst *DepStore = dyn_cast<StoreInst>(InstDep.getInst()))
- if (
!TD ||
+ if (
TD &&
TD->getTypeStoreSize(DepStore->getOperand(0)->getType()) <=
TD->getTypeStoreSize(SI->getOperand(0)->getType())) {
// Delete the store and now-dead instructions that feed it.