[PATCH] D131189: [DAGCombine] Hoist shifts out of a logic operations tree.
Filipp Zhinkin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 4 11:35:21 PDT 2022
fzhinkin created this revision.
Herald added subscribers: ecnelises, pengfei, hiraditya, nemanjai.
Herald added a project: All.
fzhinkin requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Hoist and combine shift operations from logic operations tree:
logic (logic (SH x0, s), y), (logic (SH x1, s), z)
--> logic (SH (logic x0, x1), s), (logic y, z)
The transformation improves code generated for some cases
related to the issue https://github.com/llvm/llvm-project/issues/49541.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D131189
Files:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/ARM/icmp-shift-opt.ll
llvm/test/CodeGen/ARM/shift-combine.ll
llvm/test/CodeGen/PowerPC/p10-handle-split-promote-vec.ll
llvm/test/CodeGen/X86/bswap_tree2.ll
llvm/test/CodeGen/X86/shift-combine.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131189.450085.patch
Type: text/x-patch
Size: 32807 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220804/5a64a670/attachment.bin>
More information about the llvm-commits
mailing list