diff options
author | Dan Gohman <gohman@apple.com> | 2008-04-14 17:55:48 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-04-14 17:55:48 +0000 |
commit | 2505d867836d32031c07775ea1b06a76b713ee2a (patch) | |
tree | 481fd3e430c1e11548f0a417be73264ecdc8f33d /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | d80edddccd43529a79e478f995b5fc8502411566 (diff) | |
download | bcm5719-llvm-2505d867836d32031c07775ea1b06a76b713ee2a.tar.gz bcm5719-llvm-2505d867836d32031c07775ea1b06a76b713ee2a.zip |
Fix const-correctness issues with the SrcValue handling in the
memory intrinsic expansion code.
llvm-svn: 49666
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 327a8fe8976..a0f86976809 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -2500,8 +2500,8 @@ static SDOperand getMemcpyLoadsAndStores(SelectionDAG &DAG, SDOperand Src, uint64_t Size, unsigned Align, bool AlwaysInline, - Value *DstSV, uint64_t DstOff, - Value *SrcSV, uint64_t SrcOff) { + const Value *DstSV, uint64_t DstOff, + const Value *SrcSV, uint64_t SrcOff) { const TargetLowering &TLI = DAG.getTargetLoweringInfo(); // Expand memcpy to a series of store ops if the size operand falls below @@ -2573,7 +2573,7 @@ static SDOperand getMemsetStores(SelectionDAG &DAG, SDOperand Chain, SDOperand Dst, SDOperand Src, uint64_t Size, unsigned Align, - Value *DstSV, uint64_t DstOff) { + const Value *DstSV, uint64_t DstOff) { const TargetLowering &TLI = DAG.getTargetLoweringInfo(); // Expand memset to a series of load/store ops if the size operand @@ -2604,8 +2604,8 @@ static SDOperand getMemsetStores(SelectionDAG &DAG, SDOperand SelectionDAG::getMemcpy(SDOperand Chain, SDOperand Dst, SDOperand Src, SDOperand Size, unsigned Align, bool AlwaysInline, - Value *DstSV, uint64_t DstOff, - Value *SrcSV, uint64_t SrcOff) { + const Value *DstSV, uint64_t DstOff, + const Value *SrcSV, uint64_t SrcOff) { // Check to see if we should lower the memcpy to loads and stores first. // For cases within the target-specified limits, this is the best choice. @@ -2658,8 +2658,8 @@ SDOperand SelectionDAG::getMemcpy(SDOperand Chain, SDOperand Dst, SDOperand SelectionDAG::getMemmove(SDOperand Chain, SDOperand Dst, SDOperand Src, SDOperand Size, unsigned Align, - Value *DstSV, uint64_t DstOff, - Value *SrcSV, uint64_t SrcOff) { + const Value *DstSV, uint64_t DstOff, + const Value *SrcSV, uint64_t SrcOff) { // TODO: Optimize small memmove cases with simple loads and stores, // ensuring that all loads precede all stores. This can cause severe @@ -2691,7 +2691,7 @@ SDOperand SelectionDAG::getMemmove(SDOperand Chain, SDOperand Dst, SDOperand SelectionDAG::getMemset(SDOperand Chain, SDOperand Dst, SDOperand Src, SDOperand Size, unsigned Align, - Value *DstSV, uint64_t DstOff) { + const Value *DstSV, uint64_t DstOff) { // Check to see if we should lower the memset to stores first. // For cases within the target-specified limits, this is the best choice. |