OSDN Git Service

[GISel]: Don't assert when constraining RegisterOperands which are uses.
authorAditya Nandakumar <aditya_nandakumar@apple.com>
Mon, 26 Feb 2018 22:56:21 +0000 (22:56 +0000)
committerAditya Nandakumar <aditya_nandakumar@apple.com>
Mon, 26 Feb 2018 22:56:21 +0000 (22:56 +0000)
commitbeeab2539168f36203e08a31f15d3eb9c0f3e40d
tree4f6cd536969abdda5c7d85b7e6fc6e2ac197db5e
parentb3dee20a05b3eeee34bf032f1c12ae486ba0ab9f
[GISel]: Don't assert when constraining RegisterOperands which are uses.

Currently we assert that only non target specific opcodes can have
missing RegisterClass constraints in the MCDesc. The backend can have
instructions with register operands but don't have RegisterClass
constraints (say using unknown_class) in which case the instruction
defining the register will constrain it.
Change the assert to only fire if a def has no regclass.

https://reviews.llvm.org/D43409

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@326142 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/GlobalISel/Utils.h
lib/CodeGen/GlobalISel/Utils.cpp
lib/Target/AArch64/AArch64CallLowering.cpp
lib/Target/ARM/ARMCallLowering.cpp
lib/Target/X86/X86CallLowering.cpp