[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Feb 1 19:44:57 PST 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
LegalizeDAG.cpp updated: 1.58 -> 1.59
---
Log message:
Fix yet another memset issue.
---
Diffs of the changes: (+13 -4)
LegalizeDAG.cpp | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.58 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.59
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.58 Tue Feb 1 12:38:28 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Tue Feb 1 21:44:41 2005
@@ -726,16 +726,25 @@
} else {
Tmp3 = LegalizeOp(Node->getOperand(2)); // memcpy/move = pointer,
}
- SDOperand Tmp4, Tmp5;
-
- switch (getTypeAction(Node->getOperand(3).getValueType())) { // uint
+
+ SDOperand Tmp4;
+ switch (getTypeAction(Node->getOperand(3).getValueType())) {
case Expand: assert(0 && "Cannot expand this yet!");
case Legal:
Tmp4 = LegalizeOp(Node->getOperand(3));
- Tmp5 = LegalizeOp(Node->getOperand(4));
break;
case Promote:
Tmp4 = PromoteOp(Node->getOperand(3));
+ break;
+ }
+
+ SDOperand Tmp5;
+ switch (getTypeAction(Node->getOperand(4).getValueType())) { // uint
+ case Expand: assert(0 && "Cannot expand this yet!");
+ case Legal:
+ Tmp5 = LegalizeOp(Node->getOperand(4));
+ break;
+ case Promote:
Tmp5 = PromoteOp(Node->getOperand(4));
break;
}
More information about the llvm-commits
mailing list