diff --git a/lib/IR/Instruction.cpp b/lib/IR/Instruction.cpp index 937dc695780..8bc08d6c304 100644 --- a/lib/IR/Instruction.cpp +++ b/lib/IR/Instruction.cpp @@ -690,10 +690,6 @@ bool Instruction::isSafeToRemove() const { } bool Instruction::willReturn() const { - // Volatile store isn't guaranteed to return; see LangRef. - if (auto *SI = dyn_cast(this)) - return !SI->isVolatile(); - if (const auto *CB = dyn_cast(this)) // FIXME: Temporarily assume that all side-effect free intrinsics will // return. Remove this workaround once all intrinsics are appropriately