mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:50:30 +00:00
Don't remove volatile loads. Thanks to Duncan for noticing this one.
llvm-svn: 54144
This commit is contained in:
parent
db7e5da90e
commit
d2cc2655af
@ -183,7 +183,7 @@ bool DSE::runOnBasicBlock(BasicBlock &BB) {
|
||||
Instruction* dep = MD.getDependency(S);
|
||||
DominatorTree& DT = getAnalysis<DominatorTree>();
|
||||
|
||||
if (S->getParent() == L->getParent() &&
|
||||
if (!S->isVolatile() && S->getParent() == L->getParent() &&
|
||||
S->getPointerOperand() == L->getPointerOperand() &&
|
||||
( dep == MemoryDependenceAnalysis::None ||
|
||||
dep == MemoryDependenceAnalysis::NonLocal ||
|
||||
|
Loading…
Reference in New Issue
Block a user