This is an archive of the discontinued LLVM Phabricator instance.

[SelectionDAG] Propagate alias metadata to target intrinsic nodes
ClosedPublic

Authored by jmolloy on Jul 3 2019, 6:32 AM.

Details

Summary

When a target intrinsic has been determined to touch memory, we construct a MachineMemOperand during SDAG construction. In this case, we should propagate AAMDNodes metadata to the MachineMemOperand where available.

Diff Detail

Repository
rL LLVM

Event Timeline

jmolloy created this revision.Jul 3 2019, 6:32 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 3 2019, 6:32 AM
arsenm added a subscriber: arsenm.Jul 3 2019, 6:37 AM

Can you add a test case? amdgcn_atomic_inc should work if you need an in tree sample

jmolloy updated this revision to Diff 207782.Jul 3 2019, 6:57 AM

Hi Matt,

Thanks for the prod about the testcase! Does it look alright to you?

Cheers,

James

arsenm accepted this revision.Jul 3 2019, 7:00 AM

LGTM

This revision is now accepted and ready to land.Jul 3 2019, 7:00 AM
This revision was automatically updated to reflect the committed changes.