[PATCH] D28625: [InstCombine] try to shrink bitwise logic with phi operand
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 17 16:26:48 PST 2017
spatel added a comment.
In https://reviews.llvm.org/D28625#647608, @efriedma wrote:
> Would it be possible to come up with some more general optimization? Making integer operations in loops narrower can be useful (for vectorization etc.), but specifically special-casing a boolean "or" reduction doesn't seem like something that will trigger frequently enough to matter.
My laziness of only including one test in the patch misled you. :)
Although 'any_of' and 'all_of' are my motivating cases, this patch is neither limited to 'or' nor to bools. I'll update the tests to show this.
https://reviews.llvm.org/D28625
More information about the llvm-commits
mailing list