mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "New SIL instructions to support tail-allocated arrays in SIL."
This commit is contained in:
@@ -238,15 +238,6 @@ namespace {
|
||||
}
|
||||
|
||||
bool visitAllocRefInst(const AllocRefInst *RHS) {
|
||||
auto *LHSInst = cast<AllocRefInst>(LHS);
|
||||
auto LHSTypes = LHSInst->getTailAllocatedTypes();
|
||||
auto RHSTypes = RHS->getTailAllocatedTypes();
|
||||
unsigned NumTypes = LHSTypes.size();
|
||||
assert(NumTypes == RHSTypes.size());
|
||||
for (unsigned Idx = 0; Idx < NumTypes; ++Idx) {
|
||||
if (LHSTypes[Idx] != RHSTypes[Idx])
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -357,13 +348,6 @@ namespace {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool visitRefTailAddrInst(RefTailAddrInst *RHS) {
|
||||
auto *X = cast<RefTailAddrInst>(LHS);
|
||||
if (X->getTailType() != RHS->getTailType())
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool visitStructElementAddrInst(const StructElementAddrInst *RHS) {
|
||||
// We have already checked that the operands of our struct_element_addrs
|
||||
// match. Thus we only need to check the field/struct decl which are not
|
||||
@@ -435,13 +419,6 @@ namespace {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool visitTailAddrInst(TailAddrInst *RHS) {
|
||||
auto *X = cast<TailAddrInst>(LHS);
|
||||
if (X->getTailType() != RHS->getTailType())
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool visitCondFailInst(CondFailInst *RHS) {
|
||||
// We have already compared the operands/types, so we should have equality
|
||||
// at this point.
|
||||
|
||||
Reference in New Issue
Block a user