[PATCH] D130994: [DAGCombiner] Hoist funnel shifts from logic operation.
Filipp Zhinkin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 2 09:19:57 PDT 2022
fzhinkin created this revision.
Herald added subscribers: ecnelises, pengfei, hiraditya.
Herald added a project: All.
fzhinkin requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Hoist funnel shift from logic op:
logic_op (FSH x0, x1, s), (FSH y0, y1, s)
--> FSH (logic_op x0, y0), (logic_opt x1, y1), s
The transformation improves code generated for some cases related to
issue https://github.com/llvm/llvm-project/issues/49541.
Reduced amount of funnel shifts can also improve throughput on x86 CPUs
by utilizing more available ports:
https://quick-bench.com/q/gC7AKkJJsDZzRrs_JWDzm9t_iDM
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D130994
Files:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/funnel-shift-logic-fold.ll
llvm/test/CodeGen/X86/icmp-shift-opt.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130994.449308.patch
Type: text/x-patch
Size: 11204 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220802/67e456b6/attachment.bin>
More information about the llvm-commits
mailing list