[PATCH] D123399: [InstCombine] Fold sub(add(x,y),min/max(x,y)) -> max/min(x,y) (PR38280)
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 9 02:44:34 PDT 2022
RKSimon updated this revision to Diff 421705.
RKSimon added a comment.
Require one of the operands to be oneuse and convert to MinMaxIntrinsic/getInverseMinMaxIntrinsic()
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123399/new/
https://reviews.llvm.org/D123399
Files:
llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
llvm/test/Transforms/InstCombine/sub-minmax.ll
llvm/test/Transforms/LoopVectorize/first-order-recurrence.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123399.421705.patch
Type: text/x-patch
Size: 62769 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220409/3b1ef98d/attachment.bin>
More information about the llvm-commits
mailing list