aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lenharth <andrewl@lenharth.org>2005-08-29 20:46:51 +0000
committerAndrew Lenharth <andrewl@lenharth.org>2005-08-29 20:46:51 +0000
commit5e3efbc2ca459621400211f7370d7f121d4827d9 (patch)
treeedf67ab1e37cf30606201dbb2dd9ea94a8e6610b
parent507f752f6ed28aa9f0ae680e95bfc93df4e9e2dc (diff)
Some of us cared about the the promote path
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23130 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 6ff7bccd61..695ae23777 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -1266,6 +1266,10 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
default:
assert(0 && "Cannot handle this action for SETCC yet!");
break;
+ case TargetLowering::Promote:
+ Result = DAG.getNode(ISD::SETCC, Node->getValueType(0), Tmp1, Tmp2,
+ Node->getOperand(2));
+ break;
case TargetLowering::Legal:
if (Tmp1 != Node->getOperand(0) || Tmp2 != Node->getOperand(1))
Result = DAG.getNode(ISD::SETCC, Node->getValueType(0), Tmp1, Tmp2,