mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-20 14:29:27 +00:00
Fix this condition I accidentally inverted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76988 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
78d12644b9
commit
731b5d97be
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user