diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2012-01-19 18:19:42 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2012-01-19 18:19:42 +0000 |
commit | f460bf8cd8e8a711e9de33085884e31d1c989010 (patch) | |
tree | ab81e0dd91c7acbbc9f0a98c4a37a776476b97bd /lib/Transforms | |
parent | e60540f380cc9466f3b2f7d17adfd37db137689c (diff) | |
download | external_llvm-f460bf8cd8e8a711e9de33085884e31d1c989010.zip external_llvm-f460bf8cd8e8a711e9de33085884e31d1c989010.tar.gz external_llvm-f460bf8cd8e8a711e9de33085884e31d1c989010.tar.bz2 |
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
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Utils/SimplifyCFG.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index f12ad9b..326bd7a 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/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) |