diff options
| author | Dan Gohman <gohman@apple.com> | 2008-04-16 01:32:32 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2008-04-16 01:32:32 +0000 |
| commit | 8c99ccaf9636be83647357c04ee805e2c3626ea8 (patch) | |
| tree | c3d6bee948fdeb8ff6de715a34eb6afc43d4c012 /llvm/lib/Target | |
| parent | e29e9774a404f64e1bfec06148f39e734f77e599 (diff) | |
| download | bcm5719-llvm-8c99ccaf9636be83647357c04ee805e2c3626ea8.tar.gz bcm5719-llvm-8c99ccaf9636be83647357c04ee805e2c3626ea8.zip | |
Recreate the size SDNode instead of reusing the old one in the x86
memcpy lowering code; this ensures that the size node has the desired
result type. This fixes a regression from r49572 with @llvm.memcpy.i64
on x86-32.
llvm-svn: 49761
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/X86/X86ISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index 38e6342ae65..d8eaee71c89 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -4731,7 +4731,7 @@ X86TargetLowering::EmitTargetCodeForMemset(SelectionDAG &DAG, default: // Byte aligned AVT = MVT::i8; ValReg = X86::AL; - Count = Size; + Count = DAG.getIntPtrConstant(SizeVal); break; } @@ -4746,7 +4746,7 @@ X86TargetLowering::EmitTargetCodeForMemset(SelectionDAG &DAG, InFlag = Chain.getValue(1); } else { AVT = MVT::i8; - Count = Size; + Count = DAG.getIntPtrConstant(SizeVal); Chain = DAG.getCopyToReg(Chain, X86::AL, Src, InFlag); InFlag = Chain.getValue(1); } |

