[PATCH] D32712: [ConstantRange] Reduce the number of allocations in ConstantRange::makeGuaranteedNoWrapRegion

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 15 00:19:52 PDT 2017


craig.topper updated this revision to Diff 98949.
craig.topper added a comment.

Add a new subsetIntersectWith method that doesn't rely on inverting and calling unionWith.

I'll work on some unit tests, but wanted another set of eyes on the various cases.


https://reviews.llvm.org/D32712

Files:
  include/llvm/IR/ConstantRange.h
  lib/IR/ConstantRange.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32712.98949.patch
Type: text/x-patch
Size: 6174 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170515/430c2de2/attachment.bin>


More information about the llvm-commits mailing list