From 99baddaf57e0ae8eb7e09504262b47e7ed44520e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 21 Aug 2005 19:48:59 +0000 Subject: [PATCH] add a method git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22955 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index a7531a84172..851e99b0d4a 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -1815,6 +1815,15 @@ void SelectionDAG::SelectNodeTo(SDNode *N, MVT::ValueType VT, N->setValueTypes(VT); N->setOperands(Op1, Op2); } +void SelectionDAG::SelectNodeTo(SDNode *N, + MVT::ValueType VT1, MVT::ValueType VT2, + unsigned TargetOpc, SDOperand Op1, + SDOperand Op2) { + RemoveNodeFromCSEMaps(N); + N->MorphNodeTo(ISD::BUILTIN_OP_END+TargetOpc); + N->setValueTypes(VT1, VT2); + N->setOperands(Op1, Op2); +} void SelectionDAG::SelectNodeTo(SDNode *N, MVT::ValueType VT, unsigned TargetOpc, SDOperand Op1, SDOperand Op2, SDOperand Op3) {