summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-05 20:24:08 +0000
committerDan Gohman <gohman@apple.com>2010-04-05 20:24:08 +0000
commitf38547c83f8c8e70680689c540c3b702183aabbf (patch)
treec28f99910eaae1ba54a539bef2d9a79b3da121e5 /llvm/lib/CodeGen/SelectionDAG
parentbc217873e33f0b135429259597151f85d59469e4 (diff)
downloadbcm5719-llvm-f38547c83f8c8e70680689c540c3b702183aabbf.tar.gz
bcm5719-llvm-f38547c83f8c8e70680689c540c3b702183aabbf.zip
Add a comment.
llvm-svn: 100459
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 9b1e963f99d..4570c4d8cf1 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -3518,6 +3518,12 @@ SDValue SelectionDAG::getMemcpy(SDValue Chain, DebugLoc dl, SDValue Dst,
true, DstSV, DstSVOff, SrcSV, SrcSVOff);
}
+ // FIXME: If the memcpy is volatile (isVol), lowering it to a plain libc
+ // memcpy is not guaranteed to be safe. libc memcpys aren't required to
+ // respect volatile, so they may do things like read or write memory
+ // beyond the given memory regions. But fixing this isn't easy, and most
+ // people don't care.
+
// Emit a library call.
TargetLowering::ArgListTy Args;
TargetLowering::ArgListEntry Entry;
OpenPOWER on IntegriCloud