[PATCH] D31104: [ConstantRange] Add setSizeSmallerThanOf method.
Michael Zolotukhin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 19 23:55:20 PDT 2017
mzolotukhin added a comment.
Thanks for the review, Sanjoy!
A follow-up question: do we want to keep `getSetSize`? It's currently only used in `SimplifyCFG.cpp`:
if (Span.getSetSize().ugt(8) || Span.isEmptySet())
which can be replaced with something like `if (!Span.isSizeStrictlySmallerThanOf(ConstantRange(8, /*full=*/ true)) || Span.isEmptySet())`.
Repository:
rL LLVM
https://reviews.llvm.org/D31104
More information about the llvm-commits
mailing list