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.

llvm-svn: 292547
This commit is contained in:
Justin Bogner 2017-01-20 00:24:30 +00:00
parent 698f0deea9
commit 680663931c
1 changed files with 2 additions and 2 deletions

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);