[PATCH] D45986: [AggressiveInstCombine] convert a chain of 'or-shift' bits into masked compare

Krzysztof Parzyszek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 1 06:01:42 PDT 2018


kparzysz added a comment.

This recognizes something like "bitmask-any", where the code checks if any of the bits of `V` indicated by the mask `C'` is set.  It looks like by replacing `or` with `and` you would get the corresponding "bitmask-all".  Would it be worthwhile to add it?  I don't have a use case, but the symmetry seems somewhat compelling.


https://reviews.llvm.org/D45986





More information about the llvm-commits mailing list