projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e60540f
)
Actually, this code handles wrapped sets just fine. Noticed by inspection.
author
Nick Lewycky
<nicholas@mxc.ca>
Thu, 19 Jan 2012 18:19:42 +0000
(18:19 +0000)
committer
Nick 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
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/SimplifyCFG.cpp
b/lib/Transforms/Utils/SimplifyCFG.cpp
index f12ad9b4020309a42ad32467cad5c72290694832..326bd7a2bd08fcc25262d5073eb3f05a1aaba779 100644
(file)
--- 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)