[llvm-commits] CVS: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp
Reid Spencer
reid at x10sys.com
Wed Dec 20 23:16:10 PST 2006
Changes in directory llvm/lib/Transforms/IPO:
SimplifyLibCalls.cpp updated: 1.78 -> 1.79
---
Log message:
Get rid of a useless if statement whose then and else blocks were identical.
---
Diffs of the changes: (+1 -4)
SimplifyLibCalls.cpp | 5 +----
1 files changed, 1 insertion(+), 4 deletions(-)
Index: llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp
diff -u llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp:1.78 llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp:1.79
--- llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp:1.78 Tue Dec 19 17:16:47 2006
+++ llvm/lib/Transforms/IPO/SimplifyLibCalls.cpp Thu Dec 21 01:15:54 2006
@@ -920,10 +920,7 @@
// strlen("xyz") -> 3 (for example)
const Type *Ty = SLC.getTargetData()->getIntPtrType();
- if (Ty->isSigned())
- ci->replaceAllUsesWith(ConstantInt::get(Ty, len));
- else
- ci->replaceAllUsesWith(ConstantInt::get(Ty, len));
+ ci->replaceAllUsesWith(ConstantInt::get(Ty, len));
ci->eraseFromParent();
return true;
More information about the llvm-commits
mailing list