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)
commit6cddfc14f9d0ada23ba5a22902e0140260788058
treea36f29efe98808dac0d43f94d880dd25073a0fc0
parent6a9767c7e6983c3211e35757899fb83afb2eb807
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.

llvm-svn: 286289
llvm/include/llvm/CodeGen/MachineRegisterInfo.h
llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp
llvm/lib/CodeGen/MachineRegisterInfo.cpp