diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-11-13 05:11:54 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-11-13 05:11:54 +0000 |
commit | fbe9533509abf785fd7019edf2bc1678ccfe6b0b (patch) | |
tree | f5490fe7b76a4d8d60584ea7a5bd536757875995 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 843ec14af48637f9ce6f5ed31d093f6baf8407d3 (diff) | |
download | llvm-fbe9533509abf785fd7019edf2bc1678ccfe6b0b.zip llvm-fbe9533509abf785fd7019edf2bc1678ccfe6b0b.tar.gz llvm-fbe9533509abf785fd7019edf2bc1678ccfe6b0b.tar.bz2 |
AMDGPU: Fix multi-use shl/add combine
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.
llvm-svn: 318013
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions