summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2012-01-19 18:19:42 +0000
committerNick Lewycky <nicholas@mxc.ca>2012-01-19 18:19:42 +0000
commit219e6bcb719e512662d4953747687f41d4875827 (patch)
treeb16f3cc86bfec1d74b8d13be3e2c32b89da329bc /llvm/lib/Transforms/Utils/SimplifyCFG.cpp
parent2529dd9e00cbb5ef392b18ea922e710aa7688d24 (diff)
downloadbcm5719-llvm-219e6bcb719e512662d4953747687f41d4875827.tar.gz
bcm5719-llvm-219e6bcb719e512662d4953747687f41d4875827.zip
Actually, this code handles wrapped sets just fine. Noticed by inspection.
llvm-svn: 148487
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index f12ad9b4020..326bd7a2bd0 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -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)
OpenPOWER on IntegriCloud