OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5d5af9
)
Don't remove volatile loads. Thanks to Duncan for noticing this one.
author
Owen Anderson
<resistor@mac.com>
Mon, 28 Jul 2008 20:52:42 +0000
(20:52 +0000)
committer
Owen Anderson
<resistor@mac.com>
Mon, 28 Jul 2008 20:52:42 +0000
(20:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54144
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/DeadStoreElimination.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/DeadStoreElimination.cpp
b/lib/Transforms/Scalar/DeadStoreElimination.cpp
index
0011d95
..
b75d5c4
100644
(file)
--- a/
lib/Transforms/Scalar/DeadStoreElimination.cpp
+++ b/
lib/Transforms/Scalar/DeadStoreElimination.cpp
@@
-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 ||