From: Nick Lewycky Date: Thu, 19 Jan 2012 18:19:42 +0000 (+0000) Subject: Actually, this code handles wrapped sets just fine. Noticed by inspection. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f460bf8cd8e8a711e9de33085884e31d1c989010;p=oota-llvm.git 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 --- diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index f12ad9b4020..326bd7a2bd0 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -377,9 +377,7 @@ GatherConstantCompares(Value *V, std::vector &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)