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 | 16449a9eb0e86987557b176e14c46e6485f9ed67 (patch) | |
tree | 779972bf499066c16da203c840ea4a663e49161a /llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp | |
parent | c8a6633dea8ef76a045a0a8bb73e2fc0aefb3342 (diff) | |
download | bcm5719-llvm-16449a9eb0e86987557b176e14c46e6485f9ed67.tar.gz bcm5719-llvm-16449a9eb0e86987557b176e14c46e6485f9ed67.zip |
Fix a comment that stated the wrong thing.
llvm-svn: 21638
Diffstat (limited to 'llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp b/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp index 95faac20713..9a4a4f32730 100644 --- a/llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp +++ b/llvm/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) |