[PATCH] D39677: AMDGPU: Fix multi-use shl/add combine

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 6 02:27:31 PST 2017


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

This was using a custom function that didn't handle the
addressing modes properly for private. Use
isLegalAddressingMode to avoid duplicating this.

      

Additionally, skip the combine if there is only one use
since the standard combine will handle it.


https://reviews.llvm.org/D39677

Files:
  lib/Target/AMDGPU/SIISelLowering.cpp
  lib/Target/AMDGPU/SIISelLowering.h
  test/CodeGen/AMDGPU/shl_add_ptr.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39677.121701.patch
Type: text/x-patch
Size: 19555 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171106/e84c3832/attachment.bin>


More information about the llvm-commits mailing list