diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2005-04-30 06:45:47 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2005-04-30 06:45:47 +0000 |
commit | 63a7513ac1a9ba97a9d94244f7459f80503f681f (patch) | |
tree | 5db35e9313d142f4101eabf5185bbfd137a41e40 /lib/Transforms/IPO/SimplifyLibCalls.cpp | |
parent | 9c9183aef4f6b0885cba3bca81973d824c46d5cc (diff) |
Fix a comment that stated the wrong thing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21638 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/SimplifyLibCalls.cpp')
-rw-r--r-- | lib/Transforms/IPO/SimplifyLibCalls.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Transforms/IPO/SimplifyLibCalls.cpp b/lib/Transforms/IPO/SimplifyLibCalls.cpp index 95faac2071..9a4a4f3273 100644 --- a/lib/Transforms/IPO/SimplifyLibCalls.cpp +++ b/lib/Transforms/IPO/SimplifyLibCalls.cpp @@ -511,11 +511,8 @@ public: virtual bool OptimizeCall(CallInst* ci, SimplifyLibCalls& SLC) { // First, check to see if src and destination are the same. If they are, - // then the optimization is to replace the CallInst with the destination - // because the call is a no-op. Note that this corresponds to the - // degenerate strcpy(X,X) case which should have "undefined" results - // according to the C specification. However, it occurs sometimes and - // we optimize it as a no-op. + // then the optimization is to replace the CallInst with a constant 0 + // because the call is a no-op. Value* s1 = ci->getOperand(1); Value* s2 = ci->getOperand(2); if (s1 == s2) |