[PATCH] D46573: AMDGPU: Partially shrink 64-bit shifts if reduced to 16-bit

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 8 03:52:23 PDT 2018


arsenm created this revision.
arsenm added reviewers: rampitec, cfang, kzhuravl.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng.

This is an extension of an existing combine to reduce wider
shls if the result fits in the final result type. This
introduces the same combine, but reduces the shift to a middle
sized type to avoid the slow 64-bit shift.


https://reviews.llvm.org/D46573

Files:
  lib/Target/AMDGPU/AMDGPUISelLowering.cpp
  test/CodeGen/AMDGPU/partial-shift-shrink.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46573.145663.patch
Type: text/x-patch
Size: 4868 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180508/0ce037b1/attachment.bin>


More information about the llvm-commits mailing list