[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Nov 18 21:51:58 PST 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
LegalizeDAG.cpp updated: 1.210 -> 1.211
---
Log message:
Silence a bogus warning
---
Diffs of the changes: (+2 -3)
LegalizeDAG.cpp | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.210 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.211
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.210 Fri Nov 18 18:36:38 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Fri Nov 18 23:51:46 2005
@@ -149,10 +149,9 @@
};
}
-static unsigned scalarizedOpcode(unsigned VecOp, MVT::ValueType VT) {
+static unsigned getScalarizedOpcode(unsigned VecOp, MVT::ValueType VT) {
switch (VecOp) {
default: assert(0 && "Don't know how to scalarize this opcode!");
- break;
case ISD::VADD: return MVT::isInteger(VT) ? ISD::ADD : ISD::FADD;
case ISD::VSUB: return MVT::isInteger(VT) ? ISD::SUB : ISD::FSUB;
case ISD::VMUL: return MVT::isInteger(VT) ? ISD::MUL : ISD::FMUL;
@@ -1696,7 +1695,7 @@
if (1 == cast<ConstantSDNode>(Tmp1)->getValue()) {
MVT::ValueType SVT = cast<VTSDNode>(Tmp2)->getVT();
- Result = DAG.getNode(scalarizedOpcode(Node->getOpcode(), SVT), SVT,
+ Result = DAG.getNode(getScalarizedOpcode(Node->getOpcode(), SVT), SVT,
LegalizeOp(Node->getOperand(2)),
LegalizeOp(Node->getOperand(3)));
} else {
More information about the llvm-commits
mailing list