Actually, this code handles wrapped sets just fine. Noticed by inspection.
authorNick Lewycky <nicholas@mxc.ca>
Thu, 19 Jan 2012 18:19:42 +0000 (18:19 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Thu, 19 Jan 2012 18:19:42 +0000 (18:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148487 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/SimplifyCFG.cpp

index f12ad9b4020309a42ad32467cad5c72290694832..326bd7a2bd08fcc25262d5073eb3f05a1aaba779 100644 (file)
@@ -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)