[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Feb 1 10:38:43 PST 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
LegalizeDAG.cpp updated: 1.57 -> 1.58
---
Log message:
Fix some bugs andrew noticed legalizing memset for alpha
---
Diffs of the changes: (+3 -3)
LegalizeDAG.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.57 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.58
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.57 Fri Jan 28 16:58:25 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Tue Feb 1 12:38:28 2005
@@ -710,17 +710,17 @@
case ISD::MEMSET:
case ISD::MEMCPY:
case ISD::MEMMOVE: {
- Tmp1 = LegalizeOp(Node->getOperand(0)); // Function
+ Tmp1 = LegalizeOp(Node->getOperand(0)); // Chain
Tmp2 = LegalizeOp(Node->getOperand(1)); // Pointer
if (Node->getOpcode() == ISD::MEMSET) { // memset = ubyte
switch (getTypeAction(Node->getOperand(2).getValueType())) {
case Expand: assert(0 && "Cannot expand a byte!");
case Legal:
- Tmp3 = LegalizeOp(Node->getOperand(1));
+ Tmp3 = LegalizeOp(Node->getOperand(2));
break;
case Promote:
- Tmp3 = PromoteOp(Node->getOperand(1));
+ Tmp3 = PromoteOp(Node->getOperand(2));
break;
}
} else {
More information about the llvm-commits
mailing list