Revert "New SIL instructions to support tail-allocated arrays in SIL."

This commit is contained in:
Dmitri Gribenko
2016-09-15 00:25:25 -07:00
committed by GitHub
parent cd07c2c125
commit fbb3cf35a5
68 changed files with 1145 additions and 1470 deletions

View File

@@ -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.