mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
In AliasSetTracker, do not change the alias set to "mod/ref" when adding
a volatile load, or a volatile store. llvm-svn: 190631
This commit is contained in:
parent
47bfa9a072
commit
d3b8515190
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user