[PATCH] D124119: [InstCombine] Combine instructions of type or/and where AND masks can be combined.
Biplob Mishra via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 1 07:11:51 PDT 2022
bipmis updated this revision to Diff 433387.
bipmis added a comment.
Update the patch to fix the test case
int f(int a, int b) {
int c = ((unsigned char)(a >> 23) & 925);
if (a)
c = (a >> 23 & b) | ((unsigned char)(a >> 23) & 925) | (b >> 23 & 157);
return c;
}
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124119/new/
https://reviews.llvm.org/D124119
Files:
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
llvm/test/Transforms/InstCombine/and-or.ll
llvm/test/Transforms/InstCombine/or.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124119.433387.patch
Type: text/x-patch
Size: 14572 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220601/d53f1515/attachment.bin>
More information about the llvm-commits
mailing list