GlobalISel: remove "unsized" LLT

It was only really there as a sentinel when instructions had to have precisely
one type. Now that registers are typed, each register really has to have a type
that is sized.

llvm-svn: 281599
This commit is contained in:
Tim Northover
2016-09-15 10:09:59 +00:00
parent 6a5bac48cf
commit 32a078ad1a
10 changed files with 16 additions and 55 deletions

View File

@@ -1051,7 +1051,7 @@ MachineVerifier::visitMachineOperand(const MachineOperand *MO, unsigned MONum) {
}
// Make sure the register fits into its register bank if any.
if (RegBank && Ty.isSized() &&
if (RegBank && Ty.isValid() &&
RegBank->getSize() < Ty.getSizeInBits()) {
report("Register bank is too small for virtual register", MO,
MONum);