summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-12-16 02:10:30 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-12-16 02:10:30 +0000
commit0b1b9dcf22745b533562134c2f0472098fe085fd (patch)
tree4009fa4e315b4f0cce68b50dbb78e7464479be97 /lib
parent1554c8545651350569f08dc7370189da1a7e5814 (diff)
downloadllvm-0b1b9dcf22745b533562134c2f0472098fe085fd.tar.gz
llvm-0b1b9dcf22745b533562134c2f0472098fe085fd.tar.bz2
llvm-0b1b9dcf22745b533562134c2f0472098fe085fd.tar.xz
Allow promoted FP_TO_UINT / FP_TO_SINT to expand operand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32621 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 46ad8d788f..4f4942710f 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -3155,6 +3155,7 @@ SDOperand SelectionDAGLegalize::PromoteOp(SDOperand Op) {
case ISD::FP_TO_UINT:
switch (getTypeAction(Node->getOperand(0).getValueType())) {
case Legal:
+ case Expand:
Tmp1 = Node->getOperand(0);
break;
case Promote:
@@ -3162,8 +3163,6 @@ SDOperand SelectionDAGLegalize::PromoteOp(SDOperand Op) {
// special.
Tmp1 = PromoteOp(Node->getOperand(0));
break;
- case Expand:
- assert(0 && "not implemented");
}
// If we're promoting a UINT to a larger size, check to see if the new node
// will be legal. If it isn't, check to see if FP_TO_SINT is legal, since