[PATCH] D29388: [PPC] Use rldicr instruction for AND with an immediate if possible

Hiroshi Inoue via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 1 03:50:28 PST 2017


inouehrs created this revision.

- generate `rldicr` (`clrrdi`) for AND with an immediate like 0xFFFF0000 (i.e. a bit sequence of ones from most significant side and all zero for reminder) on PowerPC platform; currently LLVM generates two or three instructions
- update two unit tests affected by this change


https://reviews.llvm.org/D29388

Files:
  lib/Target/PowerPC/PPCISelDAGToDAG.cpp
  test/CodeGen/PowerPC/fp128-bitcast-after-operation.ll
  test/CodeGen/PowerPC/i64_fp_round.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29388.86612.patch
Type: text/x-patch
Size: 4585 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170201/2a70ed4d/attachment.bin>


More information about the llvm-commits mailing list