mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-09 13:33:17 +00:00
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:
parent
d2eb386c16
commit
62d928eac1
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user