summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-03 21:06:38 +0000
committerChris Lattner <sabre@nondot.org>2002-10-03 21:06:38 +0000
commit4ee4381a230d0ba55e25a2272426b5fcd9a4c083 (patch)
tree94d58c33e5e071936c76ef2b019dfccacbb36881 /llvm/lib/Analysis
parentafff0a25b7609cec95dd366183507b062da72ef6 (diff)
downloadbcm5719-llvm-4ee4381a230d0ba55e25a2272426b5fcd9a4c083.tar.gz
bcm5719-llvm-4ee4381a230d0ba55e25a2272426b5fcd9a4c083.zip
Handle bug exposed by power benchmark
llvm-svn: 4033
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/DataStructure/DataStructure.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/DataStructure/DataStructure.cpp b/llvm/lib/Analysis/DataStructure/DataStructure.cpp
index 08ae687bfd3..f50c8ea6cfb 100644
--- a/llvm/lib/Analysis/DataStructure/DataStructure.cpp
+++ b/llvm/lib/Analysis/DataStructure/DataStructure.cpp
@@ -48,7 +48,7 @@ DSNode::DSNode(enum NodeTy NT, const Type *T) : NodeType(NT) {
// 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");
OpenPOWER on IntegriCloud