[llvm-commits] CVS: llvm/lib/Analysis/DataStructure/DataStructure.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Oct 3 16:07:01 PDT 2002
Changes in directory llvm/lib/Analysis/DataStructure:
DataStructure.cpp updated: 1.20 -> 1.21
---
Log message:
Handle bug exposed by power benchmark
---
Diffs of the changes:
Index: llvm/lib/Analysis/DataStructure/DataStructure.cpp
diff -u llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.20 llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.21
--- llvm/lib/Analysis/DataStructure/DataStructure.cpp:1.20 Tue Oct 1 23:57:39 2002
+++ llvm/lib/Analysis/DataStructure/DataStructure.cpp Thu Oct 3 16:06:38 2002
@@ -48,7 +48,7 @@
// Because of this, find the biggest power of two that is bigger than
// multiple to use as our real Multiple.
unsigned RealMultiple = 2;
- while (RealMultiple < Multiple) RealMultiple <<= 1;
+ while (RealMultiple <= Multiple) RealMultiple <<= 1;
unsigned RealBound = MergeMap.size()/RealMultiple;
assert(RealBound <= 128 && "Math didn't work out right");
More information about the llvm-commits
mailing list