[PATCH] D139342: [InstCombine] Bubble vector.reverse of binop operands to their result.

Paul Walker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 5 09:26:21 PST 2022


paulwalker-arm created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
paulwalker-arm requested review of this revision.
Herald added subscribers: llvm-commits, alextsao1999.
Herald added a project: LLVM.

This mirrors a similar shufflevector transformation so the same
effect is obtained for scalable vectors. The transformation is
only performed when it can be proven the number of resulting
reversals is not increased. By bubbling the reversals from operand
to result this should typically be the case and ideally leads to
back-back shuffles that can be elimitated entirely.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D139342

Files:
  llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
  llvm/test/Transforms/InstCombine/vector-reverse.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139342.480141.patch
Type: text/x-patch
Size: 7686 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221205/e0ec9f89/attachment.bin>


More information about the llvm-commits mailing list