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:
Chris Lattner 2008-12-07 00:25:15 +00:00
parent 84b9a56d11
commit f760be1c7f

View File

@ -90,6 +90,11 @@ bool DSE::runOnBasicBlock(BasicBlock &BB) {
// If we find a store or a free, get it's memory dependence.
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);