This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Propagate amdgpu-waves-per-eu to callees
ClosedPublic

Authored by rampitec on Mar 26 2020, 10:39 AM.

Diff Detail

Event Timeline

rampitec created this revision.Mar 26 2020, 10:39 AM
arsenm added inline comments.Mar 26 2020, 11:09 AM
llvm/lib/Target/AMDGPU/AMDGPUPropagateAttributes.cpp
68

Typo Attrbutes. Also since this isn't strictly for attributes, FunctionProperties?

llvm/test/CodeGen/AMDGPU/propagate-attributes-clone.ll
141–142

Test where the caller and callee already have the same attribute?

rampitec updated this revision to Diff 252913.Mar 26 2020, 11:23 AM
rampitec marked 2 inline comments as done.

Addressed review comments.

arsenm accepted this revision.Mar 26 2020, 2:24 PM
This revision is now accepted and ready to land.Mar 26 2020, 2:24 PM
arsenm added inline comments.Mar 26 2020, 2:25 PM
llvm/lib/Target/AMDGPU/AMDGPUPropagateAttributes.cpp
173

This should probably be an SCC pass, and use the Attributor

rampitec marked an inline comment as done.Mar 26 2020, 2:40 PM
rampitec added inline comments.
llvm/lib/Target/AMDGPU/AMDGPUPropagateAttributes.cpp
173

Ideally we should move it to LTO, but then we would need to run it always.

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptMar 26 2020, 3:15 PM