This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Simplify DS and SM cases in getMemOperandsWithOffset
ClosedPublic

Authored by foad on Jan 27 2020, 8:03 AM.

Details

Summary

This removes a couple of unnecessary isReg checks, now that
memOpsHaveSameBasePtr can handle FI operands, but is otherwise NFC.

Diff Detail

Event Timeline

foad created this revision.Jan 27 2020, 8:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 27 2020, 8:03 AM

Unit tests: pass. 62217 tests passed, 0 failed and 815 were skipped.

clang-tidy: pass.

clang-format: pass.

Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml

Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.

arsenm added inline comments.Jan 27 2020, 10:27 AM
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
276–277

Couldn't this report the implicit m0 read?

foad updated this revision to Diff 240805.Jan 28 2020, 1:54 AM

Add a TODO comment about M0.

foad marked an inline comment as done.Jan 28 2020, 1:56 AM
foad added inline comments.
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
276–277

Good point, but I've left it as a TODO because I'm not sure how to test it. I'm not sure if clustering would ever apply to DS_CONSUME/DS_APPEND or any other instructions that use M0 like this.

Unit tests: pass. 62255 tests passed, 0 failed and 824 were skipped.

clang-tidy: pass.

clang-format: pass.

Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml

Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.

This revision is now accepted and ready to land.Jan 28 2020, 10:06 AM
This revision was automatically updated to reflect the committed changes.