summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-07-24 18:31:07 +0000
committerDan Gohman <gohman@apple.com>2009-07-24 18:31:07 +0000
commit0b5be94c791854c57ab027176f34f7c79a9e7e69 (patch)
tree9d2a8badf37fc85e9ab6fcec68074393816feed8 /llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
parent1ae07368307920cd31b6da010aad59d9bcb231da (diff)
downloadbcm5719-llvm-0b5be94c791854c57ab027176f34f7c79a9e7e69.tar.gz
bcm5719-llvm-0b5be94c791854c57ab027176f34f7c79a9e7e69.zip
Fix this condition I accidentally inverted.
llvm-svn: 76988
Diffstat (limited to 'llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp b/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
index 603e0915743..e28ed38edda 100644
--- 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.
OpenPOWER on IntegriCloud