summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit835cbb364dfcdcd3f2ff9348040f59e9edb14151 (patch)
treeee43f02397d236f00fcfc9a2766f8987d089e91d /llvm/lib
parentdcde1b2b6af08d8e760ad96de16d2535339d330f (diff)
downloadbcm5719-llvm-835cbb364dfcdcd3f2ff9348040f59e9edb14151.tar.gz
bcm5719-llvm-835cbb364dfcdcd3f2ff9348040f59e9edb14151.zip
Some of us cared about the the promote path
llvm-svn: 23130
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 6ff7bccd61a..695ae23777d 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/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,
OpenPOWER on IntegriCloud