Support for MEMCPY and MEMSET.
llvm-svn: 25226
diff --git a/llvm/lib/Target/X86/X86ISelPattern.cpp b/llvm/lib/Target/X86/X86ISelPattern.cpp
index 563539d..6ca4078 100644
--- a/llvm/lib/Target/X86/X86ISelPattern.cpp
+++ b/llvm/lib/Target/X86/X86ISelPattern.cpp
@@ -3558,8 +3558,8 @@
Opcode = X86::REP_STOSB;
}
- // No matter what the alignment is, we put the source in ESI, the
- // destination in EDI, and the count in ECX.
+ // No matter what the alignment is, we put the destination in EDI, and the
+ // count in ECX.
unsigned TmpReg1 = SelectExpr(Node->getOperand(1));
BuildMI(BB, X86::MOV32rr, 1, X86::ECX).addReg(CountReg);
BuildMI(BB, X86::MOV32rr, 1, X86::EDI).addReg(TmpReg1);