Nuke isSideEffectFree

We can now compute the same result with Inst.mayHaveSideEffects(). NFC.

Swift SVN r25742
This commit is contained in:
Arnold Schwaighofer
2015-03-04 05:03:44 +00:00
parent 6bdedc769f
commit 951dc2875a
11 changed files with 17 additions and 69 deletions

View File

@@ -114,10 +114,6 @@ static bool canSinkInstruction(SILInstruction *Inst) {
/// \brief Returns true if this instruction is a skip barrier, which means that
/// we can't sink other instructions past it.
static bool isSinkBarrier(SILInstruction *Inst) {
// We know that some calls do not have side effects.
if (auto *BI = dyn_cast<BuiltinInst>(Inst))
return !isSideEffectFree(BI);
if (isa<TermInst>(Inst))
return false;