mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
PR1255: case ranges.
IntRange converted from struct to class. So main change everywhere is replacement of ".Low/High" with ".getLow/getHigh()" git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157884 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2458,10 +2458,10 @@ size_t SelectionDAGBuilder::Clusterify(CaseVector& Cases,
|
||||
|
||||
// FIXME: Currently work with ConstantInt based numbers.
|
||||
// Changing it to APInt based is a pretty heavy for this commit.
|
||||
Cases.push_back(Case(C.first.Low.toConstantInt(),
|
||||
C.first.High.toConstantInt(), C.second, W));
|
||||
Cases.push_back(Case(C.first.getLow().toConstantInt(),
|
||||
C.first.getHigh().toConstantInt(), C.second, W));
|
||||
|
||||
if (C.first.Low != C.first.High)
|
||||
if (C.first.getLow() != C.first.getHigh())
|
||||
// A range counts double, since it requires two compares.
|
||||
++numCmps;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user