[PATCH] D49076: [PowerPC] handle ISD:TRUNCATE in BitPermutationSelector

Hiroshi Inoue via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 9 07:05:08 PDT 2018


inouehrs created this revision.
inouehrs added reviewers: hfinkel, echristo, kbarton, nemanjai.

This is the last one in a series of patches to support better code generation for bitfield insert.
BitPermutationSelector already support ISD::ZERO_EXTEND but not TRUNCATE.
This patch add support for ISD:TRUNCATE in BitPermutationSelector.

I am going to withdraw my old patch to do special pattern patching for bitfield insert https://reviews.llvm.org/D33715 since all problematic cases I found are handled in BitPermutationSelector.


https://reviews.llvm.org/D49076

Files:
  lib/Target/PowerPC/PPCISelDAGToDAG.cpp
  test/CodeGen/PowerPC/bitfieldinsert.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49076.154596.patch
Type: text/x-patch
Size: 5985 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180709/d6a0dc6e/attachment.bin>


More information about the llvm-commits mailing list