[llvm] r292547 - GlobalISel: Only set FailedISel on dropped dbg intrinsics when using fallback
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 19 16:24:30 PST 2017
Author: bogner
Date: Thu Jan 19 18:24:30 2017
New Revision: 292547
URL: http://llvm.org/viewvc/llvm-project?rev=292547&view=rev
Log:
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.
Modified:
llvm/trunk/lib/CodeGen/GlobalISel/IRTranslator.cpp
Modified: llvm/trunk/lib/CodeGen/GlobalISel/IRTranslator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/GlobalISel/IRTranslator.cpp?rev=292547&r1=292546&r2=292547&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/GlobalISel/IRTranslator.cpp (original)
+++ llvm/trunk/lib/CodeGen/GlobalISel/IRTranslator.cpp Thu Jan 19 18:24:30 2017
@@ -523,8 +523,8 @@ bool IRTranslator::translateKnownIntrins
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);
More information about the llvm-commits
mailing list