summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MIRParser/MIParser.cpp
diff options
context:
space:
mode:
authorQuentin Colombet <qcolombet@apple.com>2016-12-22 21:56:29 +0000
committerQuentin Colombet <qcolombet@apple.com>2016-12-22 21:56:29 +0000
commit9751e61fe1ce38ad3b6fcb550c28af41f7cad44c (patch)
treeacba23fc157cb68f4bed65c471b88d8ee87d347f /llvm/lib/CodeGen/MIRParser/MIParser.cpp
parent7e1f66d6f5d679632b279b64bb1a0f338104730c (diff)
downloadbcm5719-llvm-9751e61fe1ce38ad3b6fcb550c28af41f7cad44c.tar.gz
bcm5719-llvm-9751e61fe1ce38ad3b6fcb550c28af41f7cad44c.zip
[MIRParser] Non-generic virtual register may have a type.
When generic virtual registers get constrained, because of a use on a target specific operation for instance, we end up with regular virtual registers with a type and that's perfectly fine. llvm-svn: 290376
Diffstat (limited to 'llvm/lib/CodeGen/MIRParser/MIParser.cpp')
-rw-r--r--llvm/lib/CodeGen/MIRParser/MIParser.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MIRParser/MIParser.cpp b/llvm/lib/CodeGen/MIRParser/MIParser.cpp
index db4dbe494f1..db513703332 100644
--- a/llvm/lib/CodeGen/MIRParser/MIParser.cpp
+++ b/llvm/lib/CodeGen/MIRParser/MIParser.cpp
@@ -1029,9 +1029,6 @@ 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 &&
- RegInfo->Kind != VRegInfo::REGBANK)
- return error("unexpected size on non-generic virtual register");
LLT Ty;
if (parseLowLevelType(Token.location(), Ty))
OpenPOWER on IntegriCloud