summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-17 06:28:22 +0000
committerChris Lattner <sabre@nondot.org>2010-02-17 06:28:22 +0000
commite78bc753fee1be5be27d981e0dbbd957c13a5c6d (patch)
tree306b42420b283c867755e3afffb1aed3be3e6096 /llvm/lib
parentc20a9586c4c8cb1a6a22cb565e99b968503358c0 (diff)
downloadbcm5719-llvm-e78bc753fee1be5be27d981e0dbbd957c13a5c6d.tar.gz
bcm5719-llvm-e78bc753fee1be5be27d981e0dbbd957c13a5c6d.zip
sink special case "cannotyetselect" for intrinsics out of the
tblgen splatted code into the implementation. llvm-svn: 96460
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index eead526f099..9ba0d55b7a9 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -1444,6 +1444,11 @@ SDNode *SelectionDAGISel::Select_EH_LABEL(SDNode *N) {
}
void SelectionDAGISel::CannotYetSelect(SDNode *N) {
+ if (N->getOpcode() == ISD::INTRINSIC_W_CHAIN ||
+ N->getOpcode() == ISD::INTRINSIC_WO_CHAIN ||
+ N->getOpcode() == ISD::INTRINSIC_VOID)
+ return CannotYetSelectIntrinsic(N);
+
std::string msg;
raw_string_ostream Msg(msg);
Msg << "Cannot yet select: ";
OpenPOWER on IntegriCloud