forked from OSchip/llvm-project
don't bother touching volatile stores, they will just return clobber on
everything interesting anyway. llvm-svn: 60640
This commit is contained in:
parent
f5891941b4
commit
5df5b4cc2e
|
@ -91,6 +91,11 @@ bool DSE::runOnBasicBlock(BasicBlock &BB) {
|
|||
if (!isa<StoreInst>(Inst) && !isa<FreeInst>(Inst))
|
||||
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);
|
||||
|
||||
// Ignore non-local stores.
|
||||
|
|
Loading…
Reference in New Issue