[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Evan Cheng
evan.cheng at apple.com
Fri Dec 15 18:10:45 PST 2006
Changes in directory llvm/lib/CodeGen/SelectionDAG:
LegalizeDAG.cpp updated: 1.445 -> 1.446
---
Log message:
Allow promoted FP_TO_UINT / FP_TO_SINT to expand operand.
---
Diffs of the changes: (+1 -2)
LegalizeDAG.cpp | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.445 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.446
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.445 Fri Dec 15 18:52:40 2006
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Fri Dec 15 20:10:30 2006
@@ -3155,6 +3155,7 @@
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 @@
// 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
More information about the llvm-commits
mailing list