[PATCH] D159073: [PowerPC][Peephole] Combine rldicl/rldicr and andi after isel.
Esme Yi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 29 02:19:13 PDT 2023
Esme created this revision.
Esme added reviewers: shchenz, lkail, qiucf, tingwang, PowerPC.
Herald added subscribers: kbarton, hiraditya, nemanjai.
Herald added a project: All.
Esme requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
rldicl/rldicr can be eliminated if it's used to clear the high-order or low-order n bits and all bits cleared will be ANDed with 0 by andi.
This patch optimizes such pattern.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D159073
Files:
llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
llvm/test/CodeGen/PowerPC/p8-scalar_vector_conversions.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159073.554216.patch
Type: text/x-patch
Size: 4252 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230829/0ac73e90/attachment.bin>
More information about the llvm-commits
mailing list