mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Nuke isSideEffectFree
We can now compute the same result with Inst.mayHaveSideEffects(). NFC. Swift SVN r25742
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user