GlobalISel: Only set FailedISel on dropped dbg intrinsics when using fallback

It's easier to test the non-fallback path if we just drop these
intrinsics for now, like we did before we added the fallback path.
We'll obviously need to fix this properly, but the fixme for that is
already here.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292547 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Justin Bogner 2017-01-20 00:24:30 +00:00
parent aaeaea1399
commit 09f3ac9e7b

View File

@ -523,8 +523,8 @@ bool IRTranslator::translateKnownIntrinsic(const CallInst &CI, Intrinsic::ID ID,
case Intrinsic::dbg_declare:
case Intrinsic::dbg_value:
// FIXME: these obviously need to be supported properly.
MF->getProperties().set(
MachineFunctionProperties::Property::FailedISel);
if (!TPC->isGlobalISelAbortEnabled())
MF->getProperties().set(MachineFunctionProperties::Property::FailedISel);
return true;
case Intrinsic::uadd_with_overflow:
return translateOverflowIntrinsic(CI, TargetOpcode::G_UADDE, MIRBuilder);