diff options
author | Dan Gohman <gohman@apple.com> | 2009-07-24 18:31:07 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-07-24 18:31:07 +0000 |
commit | 731b5d97be37b5d9c283ced9e0d1fb17f8020a74 (patch) | |
tree | 8bd0800b14b8f5dbaad3c701bf5669871f14fc9c /lib/Transforms | |
parent | 78d12644b905dc54cf6cf984af02a49d30d29744 (diff) | |
download | external_llvm-731b5d97be37b5d9c283ced9e0d1fb17f8020a74.zip external_llvm-731b5d97be37b5d9c283ced9e0d1fb17f8020a74.tar.gz external_llvm-731b5d97be37b5d9c283ced9e0d1fb17f8020a74.tar.bz2 |
Fix this condition I accidentally inverted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76988 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/DeadStoreElimination.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/DeadStoreElimination.cpp b/lib/Transforms/Scalar/DeadStoreElimination.cpp index 603e091..e28ed38 100644 --- a/lib/Transforms/Scalar/DeadStoreElimination.cpp +++ b/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. |