[llvm-commits] CVS: llvm/lib/Transforms/IPO/IPConstantPropagation.cpp
LLVM
llvm at cs.uiuc.edu
Sun Jul 18 01:31:30 PDT 2004
Changes in directory llvm/lib/Transforms/IPO:
IPConstantPropagation.cpp updated: 1.6 -> 1.7
---
Log message:
Avoid an unnecessary isa<Constant>.
---
Diffs of the changes: (+1 -3)
Index: llvm/lib/Transforms/IPO/IPConstantPropagation.cpp
diff -u llvm/lib/Transforms/IPO/IPConstantPropagation.cpp:1.6 llvm/lib/Transforms/IPO/IPConstantPropagation.cpp:1.7
--- llvm/lib/Transforms/IPO/IPConstantPropagation.cpp:1.6 Sat Jul 17 19:26:34 2004
+++ llvm/lib/Transforms/IPO/IPConstantPropagation.cpp Sun Jul 18 03:31:18 2004
@@ -82,9 +82,7 @@
if (*AI == &F) return false; // Passes the function into itself
if (!ArgumentConstants[i].second) {
- if (isa<Constant>(*AI)) {
- Constant *C = dyn_cast<Constant>(*AI);
-
+ if (Constant *C = dyn_cast<Constant>(*AI)) {
if (!ArgumentConstants[i].first)
ArgumentConstants[i].first = C;
else if (ArgumentConstants[i].first != C) {
More information about the llvm-commits
mailing list