[codemotion] CondFail does not cause us to read/write memory in a manner that we care about.

Swift SVN r13323
This commit is contained in:
Michael Gottesman
2014-02-03 00:11:14 +00:00
parent 32f76c2fa7
commit 33a8cc36a2

View File

@@ -95,6 +95,10 @@ void promoteMemoryOperationsInBlock(SILBasicBlock *BB) {
if (isReadNone(BI))
continue;
// cond_fail does not read/write memory in a manner that we care about.
if (isa<CondFailInst>(Inst))
continue;
// All other instructions that read from memory invalidate the store.
if (Inst->mayReadFromMemory())
PrevStore = 0;