Handle bug exposed by power benchmark

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4033 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-10-03 21:06:38 +00:00
parent d2eb386c16
commit 62d928eac1

View File

@ -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");