OSDN Git Service

GlobalISel: Always check operand types when executing match table
authorVolkan Keles <vkeles@apple.com>
Wed, 7 Feb 2018 02:44:51 +0000 (02:44 +0000)
committerVolkan Keles <vkeles@apple.com>
Wed, 7 Feb 2018 02:44:51 +0000 (02:44 +0000)
commitd083255aa282d3eede6d123a765f5c90fcb42e85
tree5a1ca8258cd37816a624583011977b8108eb47b9
parent4fe7c58adf9295bee3aa23cd67afb54c054693e1
GlobalISel: Always check operand types when executing match table

Summary:
Some of the commands tries to get the register without checking
if the specified operands is a register and causing crash. All commands
should check the type of the operand first and reject if the type is
not expected.

Reviewers: dsanders, qcolombet

Reviewed By: qcolombet

Subscribers: qcolombet, rovka, kristof.beyls, llvm-commits

Differential Revision: https://reviews.llvm.org/D42984

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@324442 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h
test/CodeGen/X86/GlobalISel/avoid-matchtable-crash.mir [new file with mode: 0644]