SIL: Rename SILGlobalAddr to GlobalAddr.

All globals are SIL globals now.

Swift SVN r22827
This commit is contained in:
Joe Groff
2014-10-18 17:08:28 +00:00
parent b9d5a7a71b
commit 3f23b82e6d
59 changed files with 166 additions and 168 deletions

View File

@@ -598,10 +598,8 @@ bool CopyForwarding::hoistDestroy(SILInstruction *DestroyPoint,
--SI;
SILInstruction *Inst = &*SI;
if (!SrcUserInsts.count(Inst)) {
if (!IsWorthHoisting) {
if (const ApplyInst *AI = dyn_cast<ApplyInst>(Inst))
IsWorthHoisting = true;
}
if (!IsWorthHoisting && isa<ApplyInst>(Inst))
IsWorthHoisting = true;
continue;
}
if (auto *CopyInst = dyn_cast<CopyAddrInst>(Inst)) {