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.
Paths 
  |  Differential  D39677  
AMDGPU: Fix multi-use shl/add combine ClosedPublic Authored by arsenm on Nov 6 2017, 2:27 AM. 
Details 
 Summary This was using a custom function that didn't handle the Additionally, skip the combine if there is only one use 
Diff Detail Event TimelineHerald added subscribers: t-tye, tpr, dstuttard and 4 others.  ·  View Herald TranscriptNov 6 2017, 2:27 AM This revision is now accepted and ready to land.Nov 6 2017, 10:33 AM 
Revision Contents 
 
Diff 121701 lib/Target/AMDGPU/SIISelLowering.h
 lib/Target/AMDGPU/SIISelLowering.cpp
 test/CodeGen/AMDGPU/shl_add_ptr.ll
  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||