mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-27 22:15:18 +00:00
conservatively say that volatile stores read memory.
llvm-svn: 50872
This commit is contained in:
parent
56baa19bfb
commit
e3970f1e95
@ -226,13 +226,14 @@ bool Instruction::mayReadFromMemory() const {
|
||||
default: return false;
|
||||
case Instruction::Free:
|
||||
case Instruction::VAArg:
|
||||
case Instruction::Load:
|
||||
return true;
|
||||
case Instruction::Call:
|
||||
return !cast<CallInst>(this)->doesNotAccessMemory();
|
||||
case Instruction::Invoke:
|
||||
return !cast<InvokeInst>(this)->doesNotAccessMemory();
|
||||
case Instruction::Load:
|
||||
return true;
|
||||
case Instruction::Store:
|
||||
return cast<StoreInst>(this)->isVolatile();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user