From: Justin Bogner Date: Fri, 20 Jan 2017 00:24:30 +0000 (+0000) Subject: GlobalISel: Only set FailedISel on dropped dbg intrinsics when using fallback X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=09f3ac9e7b507f00bd04a4e7518bd5523848d5dd;p=llvm 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 --- diff --git a/lib/CodeGen/GlobalISel/IRTranslator.cpp b/lib/CodeGen/GlobalISel/IRTranslator.cpp index 821ebf97ce5..1cfe5345c65 100644 --- a/lib/CodeGen/GlobalISel/IRTranslator.cpp +++ b/lib/CodeGen/GlobalISel/IRTranslator.cpp @@ -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);