[PATCH] D70374: [PowerPC] combine rlwinm + rlwinm to rlwinm

ChenZheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 18 00:12:22 PST 2019


shchenz created this revision.
shchenz added reviewers: nemanjai, jsji, qshanz, hfinkel, PowerPC.
Herald added subscribers: llvm-commits, wuzish, hiraditya.
Herald added a project: LLVM.

This patch is to support combining of rlwinm + rlwinm to one rlwinm.
For example:

  x3 = rlwinm x3, 27, 5, 31
  x3 = rlwinm x3, 19, 0, 12

can be combined to

  x3 = rlwinm x3, 14, 0, 12


https://reviews.llvm.org/D70374

Files:
  llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
  llvm/test/CodeGen/PowerPC/fold-rlwinm.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70374.229754.patch
Type: text/x-patch
Size: 8192 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191118/2a98f107/attachment.bin>


More information about the llvm-commits mailing list