diff options
| author | Bill Wendling <isanbard@gmail.com> | 2011-08-15 21:14:31 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2011-08-15 21:14:31 +0000 |
| commit | e86965ee19943aa5b4dc4b4cabad2a0c25857f77 (patch) | |
| tree | 58e7cce41ad3a8f319298eb4d2e00780b978fbde /llvm/lib/VMCore | |
| parent | 4d05198d1f3f792a61641627c3abbb1158acea8c (diff) | |
| download | bcm5719-llvm-e86965ee19943aa5b4dc4b4cabad2a0c25857f77.tar.gz bcm5719-llvm-e86965ee19943aa5b4dc4b4cabad2a0c25857f77.zip | |
Duncan pointed out that the LandingPadInst might read memory. (It might also
write to memory.) Marking it as such makes some checks for immobility go away.
llvm-svn: 137655
Diffstat (limited to 'llvm/lib/VMCore')
| -rw-r--r-- | llvm/lib/VMCore/Instruction.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/Instruction.cpp b/llvm/lib/VMCore/Instruction.cpp index 22656f3353d..9e55a083db0 100644 --- a/llvm/lib/VMCore/Instruction.cpp +++ b/llvm/lib/VMCore/Instruction.cpp @@ -320,6 +320,7 @@ bool Instruction::mayReadFromMemory() const { case Instruction::Fence: // FIXME: refine definition of mayReadFromMemory case Instruction::AtomicCmpXchg: case Instruction::AtomicRMW: + case Instruction::LandingPad: return true; case Instruction::Call: return !cast<CallInst>(this)->doesNotAccessMemory(); @@ -340,6 +341,7 @@ bool Instruction::mayWriteToMemory() const { case Instruction::VAArg: case Instruction::AtomicCmpXchg: case Instruction::AtomicRMW: + case Instruction::LandingPad: return true; case Instruction::Call: return !cast<CallInst>(this)->onlyReadsMemory(); |

