diff options
author | Mon P Wang <wangmp@apple.com> | 2010-04-06 08:27:51 +0000 |
---|---|---|
committer | Mon P Wang <wangmp@apple.com> | 2010-04-06 08:27:51 +0000 |
commit | 01f0e8561d8e95b1de94d3971b8ad0aa29c20951 (patch) | |
tree | 0a0c5d7116d0f51931fbfd9cff10a31b585f9e9b /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | ffb731245827584c7956106cb6b966b4285dd1e6 (diff) | |
download | external_llvm-01f0e8561d8e95b1de94d3971b8ad0aa29c20951.zip external_llvm-01f0e8561d8e95b1de94d3971b8ad0aa29c20951.tar.gz external_llvm-01f0e8561d8e95b1de94d3971b8ad0aa29c20951.tar.bz2 |
Remove assert to treat memmove and memset like memcpy
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100521 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 8c0554d..af81b29 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -3571,8 +3571,10 @@ SDValue SelectionDAG::getMemmove(SDValue Chain, DebugLoc dl, SDValue Dst, if (Result.getNode()) return Result; + // FIXME: If the memmove is volatile, lowering it to plain libc memmove may + // not be safe. See memcpy above for more details. + // Emit a library call. - assert(!isVol && "library memmove does not support volatile"); TargetLowering::ArgListTy Args; TargetLowering::ArgListEntry Entry; Entry.Ty = TLI.getTargetData()->getIntPtrType(*getContext()); @@ -3620,8 +3622,7 @@ SDValue SelectionDAG::getMemset(SDValue Chain, DebugLoc dl, SDValue Dst, if (Result.getNode()) return Result; - // Emit a library call. - assert(!isVol && "library memset does not support volatile"); + // Emit a library call. const Type *IntPtrTy = TLI.getTargetData()->getIntPtrType(*getContext()); TargetLowering::ArgListTy Args; TargetLowering::ArgListEntry Entry; |