diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2013-09-12 20:15:50 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2013-09-12 20:15:50 +0000 |
commit | de7485af551699f319b7ec0a953a7f404aee7b04 (patch) | |
tree | 0f73d06ce6225c8b4e8a74ddc0f72ae6e9b731ae /llvm/lib/Analysis | |
parent | 583d095fa42861aa6bb67fd0d62cff0e90c33bd4 (diff) | |
download | bcm5719-llvm-de7485af551699f319b7ec0a953a7f404aee7b04.tar.gz bcm5719-llvm-de7485af551699f319b7ec0a953a7f404aee7b04.zip |
In AliasSetTracker, do not change the alias set to "mod/ref" when adding
a volatile load, or a volatile store.
llvm-svn: 190631
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r-- | llvm/lib/Analysis/AliasSetTracker.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/AliasSetTracker.cpp b/llvm/lib/Analysis/AliasSetTracker.cpp index 591052671d6..2289c1223e9 100644 --- a/llvm/lib/Analysis/AliasSetTracker.cpp +++ b/llvm/lib/Analysis/AliasSetTracker.cpp @@ -299,7 +299,6 @@ bool AliasSetTracker::add(Value *Ptr, uint64_t Size, const MDNode *TBAAInfo) { bool AliasSetTracker::add(LoadInst *LI) { if (LI->getOrdering() > Monotonic) return addUnknown(LI); AliasSet::AccessType ATy = AliasSet::Refs; - if (!LI->isUnordered()) ATy = AliasSet::ModRef; bool NewPtr; AliasSet &AS = addPointer(LI->getOperand(0), AA.getTypeStoreSize(LI->getType()), @@ -312,7 +311,6 @@ bool AliasSetTracker::add(LoadInst *LI) { bool AliasSetTracker::add(StoreInst *SI) { if (SI->getOrdering() > Monotonic) return addUnknown(SI); AliasSet::AccessType ATy = AliasSet::Mods; - if (!SI->isUnordered()) ATy = AliasSet::ModRef; bool NewPtr; Value *Val = SI->getOperand(0); AliasSet &AS = addPointer(SI->getOperand(1), |