[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/Local.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Feb 14 23:54:02 PST 2004
Changes in directory llvm/lib/Analysis/DataStructure:
Local.cpp updated: 1.81 -> 1.82
---
Log message:
No need to scan zero initializers. This should make DSA a bit faster.
---
Diffs of the changes: (+2 -0)
Index: llvm/lib/Analysis/DataStructure/Local.cpp
diff -u llvm/lib/Analysis/DataStructure/Local.cpp:1.81 llvm/lib/Analysis/DataStructure/Local.cpp:1.82
--- llvm/lib/Analysis/DataStructure/Local.cpp:1.81 Fri Feb 13 15:21:48 2004
+++ llvm/lib/Analysis/DataStructure/Local.cpp Sat Feb 14 23:53:42 2004
@@ -681,6 +681,8 @@
DSNodeHandle NewNH(NH.getNode(), NH.getOffset()+SL->MemberOffsets[i]);
MergeConstantInitIntoNode(NewNH, cast<Constant>(CS->getOperand(i)));
}
+ } else if (ConstantAggregateZero *CAZ = dyn_cast<ConstantAggregateZero>(C)) {
+ // Noop
} else {
assert(0 && "Unknown constant type!");
}
More information about the llvm-commits
mailing list