mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
SimplifyCFG: Ranges can be larger than 64 bits. Fixes Release-selfhost build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122054 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -324,7 +324,7 @@ GatherConstantCompares(Value *V, std::vector<ConstantInt*> &Vals, Value *&Extra,
|
||||
Span = Span.inverse();
|
||||
|
||||
// If there are a ton of values, we don't want to make a ginormous switch.
|
||||
if (Span.getSetSize().getZExtValue() > 8 || Span.isEmptySet() ||
|
||||
if (Span.getSetSize().ugt(8) || Span.isEmptySet() ||
|
||||
// We don't handle wrapped sets yet.
|
||||
Span.isWrappedSet())
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user