]> granicus.if.org Git - llvm/commitdiff
GlobalISel: Only set FailedISel on dropped dbg intrinsics when using fallback
authorJustin Bogner <mail@justinbogner.com>
Fri, 20 Jan 2017 00:24:30 +0000 (00:24 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 20 Jan 2017 00:24:30 +0000 (00:24 +0000)
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

lib/CodeGen/GlobalISel/IRTranslator.cpp

index 821ebf97ce56853bb00a0856bf118447f3f0749a..1cfe5345c650071b924086861d328399709497e2 100644 (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);