mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
conservatively say that volatile stores read memory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50872 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0561f78a14
commit
748118d8aa
@ -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