diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-17 06:28:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-17 06:28:22 +0000 |
commit | 409ac586e83525a760692cf0affb01f1c9efa594 (patch) | |
tree | 09bf6f69668a54c2ed558ec937bb9dc139640e54 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 9a747f1305e76025df2323a03b805a284f2cde77 (diff) |
sink special case "cannotyetselect" for intrinsics out of the
tblgen splatted code into the implementation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96460 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index eead526f09..9ba0d55b7a 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/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: "; |