]> granicus.if.org Git - llvm/commit
GlobalISel: allow CodeGen to fallback on VReg type/class issues.
authorTim Northover <tnorthover@apple.com>
Tue, 8 Nov 2016 20:39:03 +0000 (20:39 +0000)
committerTim Northover <tnorthover@apple.com>
Tue, 8 Nov 2016 20:39:03 +0000 (20:39 +0000)
commit474c83f1b325c10ba5244d2dc185476c062a3f43
tree027bf42f216f70bf8fc751566f62f46256e434b8
parentd57fec969812c61bd7b1718ea80bf9a3f2115df7
GlobalISel: allow CodeGen to fallback on VReg type/class issues.

After instruction selection we perform some checks on each VReg just before
discarding the type information. These checks were assertions before, but that
breaks the fallback path so this patch moves the logic into the main flow and
reports a better error on failure.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286289 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineRegisterInfo.h
lib/CodeGen/GlobalISel/InstructionSelect.cpp
lib/CodeGen/MachineRegisterInfo.cpp