[llvm-commits] [llvm] r148487 - /llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp

Nick Lewycky nicholas at mxc.ca
Thu Jan 19 10:19:42 PST 2012


Author: nicholas
Date: Thu Jan 19 12:19:42 2012
New Revision: 148487

URL: http://llvm.org/viewvc/llvm-project?rev=148487&view=rev
Log:
Actually, this code handles wrapped sets just fine. Noticed by inspection.

Modified:
    llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp

Modified: llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp?rev=148487&r1=148486&r2=148487&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp Thu Jan 19 12:19:42 2012
@@ -377,9 +377,7 @@
         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)





More information about the llvm-commits mailing list