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

@@ -728,7 +728,7 @@ MemBehavior MemoryBehaviorVisitor::visitBuiltinInst(BuiltinInst *BI) {
}
// If the builtin is side effect free, then it can only read memory.
if (isSideEffectFree(BI)) {
if (!BI->mayHaveSideEffects()) {
DEBUG(llvm::dbgs() << " Found apply of side effect free builtin. "
"Returning MayRead.\n");
return MemBehavior::MayRead;