[sil] Add support for multiple value instructions by adding MultipleValueInstruction{,Result}.

rdar://31521023
This commit is contained in:
Michael Gottesman
2017-10-04 19:43:07 -07:00
committed by Michael Gottesman
parent 652edc93f8
commit 6df5462ee2
21 changed files with 700 additions and 137 deletions

View File

@@ -360,8 +360,8 @@ MemBehaviorKeyTy AliasAnalysis::toMemoryBehaviorKey(SILInstruction *V1,
MemoryBehaviorNodeToIndex.getIndex(V1->getCanonicalSILNodeInObject());
assert(idx1 != std::numeric_limits<size_t>::max() &&
"~0 index reserved for empty/tombstone keys");
size_t idx2 =
MemoryBehaviorNodeToIndex.getIndex(V2->getCanonicalSILNodeInObject());
size_t idx2 = MemoryBehaviorNodeToIndex.getIndex(
V2->getRepresentativeSILNodeInObject());
assert(idx2 != std::numeric_limits<size_t>::max() &&
"~0 index reserved for empty/tombstone keys");
return {idx1, idx2, M};