[llvm-commits] [poolalloc] r141675 - /poolalloc/trunk/lib/DSA/DataStructure.cpp
John Criswell
criswell at uiuc.edu
Tue Oct 11 09:36:34 PDT 2011
Author: criswell
Date: Tue Oct 11 11:36:34 2011
New Revision: 141675
URL: http://llvm.org/viewvc/llvm-project?rev=141675&view=rev
Log:
Removed the unused gcd() function.
Modified:
poolalloc/trunk/lib/DSA/DataStructure.cpp
Modified: poolalloc/trunk/lib/DSA/DataStructure.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/DataStructure.cpp?rev=141675&r1=141674&r2=141675&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/DataStructure.cpp (original)
+++ poolalloc/trunk/lib/DSA/DataStructure.cpp Tue Oct 11 11:36:34 2011
@@ -506,16 +506,6 @@
Globals.insert(RHS.Globals.begin(), RHS.Globals.end());
}
-static unsigned gcd(unsigned m, unsigned n) {
- if (m < n) return gcd(n,m);
- unsigned r = m % n;
- if (r == 0) {
- return n;
- } else {
- return gcd(n, r);
- }
-}
-
// MergeNodes - Helper function for DSNode::mergeWith().
// This function does the hard work of merging two nodes, CurNodeH
// and NH after filtering out trivial cases and making sure that
More information about the llvm-commits
mailing list