[PATCH] D16204: ValueTracking: Use fixed array for assumption exclude set in Query; NFC

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 14 16:42:04 PST 2016


reames added a subscriber: reames.
reames added a comment.

Given MaxDepth is less than the Small size specified for the SmallPtrSet, I'm not sure why this is faster?  The only difference I can come up with in the new code vs the old is a) the check for isSmall and b) the fact the insert code is outlined for SmallPtrSet.

I'd really doubt that (a) is the cause.  If it is (b), we should just fix the SmallPtrSet impl to inline the common case of the insertion logic.

Please try measuring with a tweaked version of SmallPtrSet.  Unless you can show that the hand rolled code is still much faster, I'm hesitant to take this change.


Repository:
  rL LLVM

http://reviews.llvm.org/D16204





More information about the llvm-commits mailing list