mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 06:32:09 +00:00
Actually, this code handles wrapped sets just fine. Noticed by inspection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148487 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e60540f380
commit
f460bf8cd8
@ -377,9 +377,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().ugt(8) || Span.isEmptySet() ||
|
||||
// We don't handle wrapped sets yet.
|
||||
Span.isWrappedSet())
|
||||
if (Span.getSetSize().ugt(8) || Span.isEmptySet())
|
||||
return 0;
|
||||
|
||||
for (APInt Tmp = Span.getLower(); Tmp != Span.getUpper(); ++Tmp)
|
||||
|
Loading…
x
Reference in New Issue
Block a user