From: Tim Northover Date: Tue, 11 Oct 2016 20:50:04 +0000 (+0000) Subject: MIRParser: allow types on registers with a RegBank. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c7a4f453b1c53dbd95d6cb460bae42d0f04f73d;p=llvm MIRParser: allow types on registers with a RegBank. This fixes some GlobalISel regression tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283936 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/MIRParser/MIParser.cpp b/lib/CodeGen/MIRParser/MIParser.cpp index 0f58e617b3e..74394d49703 100644 --- a/lib/CodeGen/MIRParser/MIParser.cpp +++ b/lib/CodeGen/MIRParser/MIParser.cpp @@ -990,7 +990,8 @@ bool MIParser::parseRegisterOperand(MachineOperand &Dest, // Virtual registers may have a size with GlobalISel. if (!TargetRegisterInfo::isVirtualRegister(Reg)) return error("unexpected size on physical register"); - if (RegInfo->Kind != VRegInfo::GENERIC) + if (RegInfo->Kind != VRegInfo::GENERIC && + RegInfo->Kind != VRegInfo::REGBANK) return error("unexpected size on non-generic virtual register"); LLT Ty;