]> granicus.if.org Git - llvm/commitdiff
MIRParser: allow types on registers with a RegBank.
authorTim Northover <tnorthover@apple.com>
Tue, 11 Oct 2016 20:50:04 +0000 (20:50 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 11 Oct 2016 20:50:04 +0000 (20:50 +0000)
This fixes some GlobalISel regression tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283936 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MIRParser/MIParser.cpp

index 0f58e617b3e973d4cc6d77e668189835d65828d5..74394d4970333f72173047119f5081e2edc6b51d 100644 (file)
@@ -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;