[PATCH] D159056: [InstCombine] Make `isFreeToInvert` check recursively.
Noah Goldstein via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 28 21:28:57 PDT 2023
goldstein.w.n created this revision.
goldstein.w.n added reviewers: nikic, RKSimon, Allen.
Herald added a subscriber: StephenFan.
Herald added a project: All.
goldstein.w.n requested review of this revision.
Herald added subscribers: llvm-commits, wangpc.
Herald added a project: LLVM.
Some Instructions (select/min/max) are inverted by just inverting the
operands. So the answer of whether they are free to invert is really
just whether the operands are free to invert.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D159056
Files:
llvm/include/llvm/Transforms/InstCombine/InstCombiner.h
llvm/test/Transforms/InstCombine/minmax-intrinsics.ll
llvm/test/Transforms/InstCombine/pr63791.ll
llvm/test/Transforms/LoopVectorize/reduction-inloop.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159056.554163.patch
Type: text/x-patch
Size: 8549 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230829/d15c50ad/attachment.bin>
More information about the llvm-commits
mailing list