This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Cleanup/refactor SIMemoryLegalizer [3]:
ClosedPublic

Authored by kzhuravl on Sep 1 2017, 1:10 PM.

Details

Summary
  • Refactor SIMemOpInfo's constructors
  • Allow construction of NotAtomic SIMemOpInfo

Diff Detail

Repository
rL LLVM

Event Timeline

kzhuravl created this revision.Sep 1 2017, 1:10 PM
t-tye accepted this revision.Sep 1 2017, 2:41 PM

LGTM except for suggested added comments.

lib/Target/AMDGPU/SIMemoryLegalizer.cpp
195 ↗(On Diff #113585)

Suggest comment along the lines:

// Since machine memory operands are optional, if not present have to conservatively assume the worst case of a sequentially consistent system scope atomic.

Same comment for other factory methods.

This revision is now accepted and ready to land.Sep 1 2017, 2:41 PM
kzhuravl added inline comments.Sep 5 2017, 9:44 AM
lib/Target/AMDGPU/SIMemoryLegalizer.cpp
195 ↗(On Diff #113585)

Similar comment is in D37397.

This revision was automatically updated to reflect the committed changes.