OSDN Git Service

TableGen/GlobalISel: Handle non-leaf EXTRACT_SUBREG
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 14 Jan 2020 21:02:02 +0000 (16:02 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 24 Jan 2020 20:15:10 +0000 (12:15 -0800)
commit9c346464c15c9f42fd641c33ca4c35b31556a661
tree15eb4fc2f9c0f74c732b6e7ba0b9a4a2fba4a106
parentd8328c0b6240234c8036f16c081ab7e8dc98cce8
TableGen/GlobalISel: Handle non-leaf EXTRACT_SUBREG

This previously only handled EXTRACT_SUBREGs from leafs, such as
operands directly in the original output. Handle extracting from a
result instruction.
llvm/include/llvm/CodeGen/GlobalISel/InstructionSelector.h
llvm/include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h
llvm/test/CodeGen/X86/GlobalISel/select-copy.mir
llvm/test/CodeGen/X86/GlobalISel/select-ext.mir
llvm/test/CodeGen/X86/GlobalISel/shl-scalar-widening.ll
llvm/test/CodeGen/X86/GlobalISel/x86-select-sdiv.mir
llvm/test/CodeGen/X86/GlobalISel/x86_64-select-zext.mir
llvm/test/TableGen/GlobalISelEmitterSubreg.td
llvm/utils/TableGen/GlobalISelEmitter.cpp