From 58107dd547a883927c9be9a92b8396a7700685d9 Mon Sep 17 00:00:00 2001 From: Stepan Dyatkovskiy Date: Tue, 29 May 2012 12:26:47 +0000 Subject: ConstantRangesSet renamed to IntegersSubset. CRSBuilder renamed to IntegersSubsetMapping. llvm-svn: 157612 --- llvm/lib/Transforms/Utils/Local.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Transforms/Utils/Local.cpp') diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index 130b876ee96..a4ddfa5de3c 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -169,11 +169,11 @@ bool llvm::ConstantFoldTerminator(BasicBlock *BB, bool DeleteDeadConditions) { // Otherwise, we can fold this switch into a conditional branch // instruction if it has only one non-default destination. SwitchInst::CaseIt FirstCase = SI->case_begin(); - ConstantRangesSet CRS = FirstCase.getCaseValueEx(); - if (CRS.getNumItems() == 1 && CRS.isSingleNumber(0)) { + IntegersSubset CaseRanges = FirstCase.getCaseValueEx(); + if (CaseRanges.getNumItems() == 1 && CaseRanges.isSingleNumber(0)) { // FIXME: Currently work with ConstantInt based numbers. Value *Cond = Builder.CreateICmpEQ(SI->getCondition(), - CRS.getItem(0).Low.toConstantInt(), + CaseRanges.getItem(0).Low.toConstantInt(), "cond"); // Insert the new branch. -- cgit v1.2.3