mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
don't bother touching volatile stores, they will just return clobber on
everything interesting anyway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60640 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -91,6 +91,11 @@ bool DSE::runOnBasicBlock(BasicBlock &BB) {
|
|||||||
if (!isa<StoreInst>(Inst) && !isa<FreeInst>(Inst))
|
if (!isa<StoreInst>(Inst) && !isa<FreeInst>(Inst))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
// Don't molest volatile stores or do queries that will return "clobber".
|
||||||
|
if (StoreInst *SI = dyn_cast<StoreInst>(Inst))
|
||||||
|
if (SI->isVolatile())
|
||||||
|
continue;
|
||||||
|
|
||||||
MemDepResult InstDep = MD.getDependency(Inst);
|
MemDepResult InstDep = MD.getDependency(Inst);
|
||||||
|
|
||||||
// Ignore non-local stores.
|
// Ignore non-local stores.
|
||||||
|
Reference in New Issue
Block a user