[PATCH] D148275: [InstCombine] support fold select(X|Y,X|Y,X) to X|Y
Congcong Cai via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 13 23:53:33 PDT 2023
HerrCai0907 updated this revision to Diff 513451.
HerrCai0907 marked 2 inline comments as done.
HerrCai0907 edited the summary of this revision.
HerrCai0907 added a comment.
add select(X&Y==-1, X, X&Y) -> X&Y
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148275/new/
https://reviews.llvm.org/D148275
Files:
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
llvm/test/Transforms/InstCombine/select_or_and.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148275.513451.patch
Type: text/x-patch
Size: 6166 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230414/ffe0a4d0/attachment.bin>
More information about the llvm-commits
mailing list