This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Add infer address spaces pass before SROA
ClosedPublic

Authored by rampitec on Jun 19 2017, 2:14 PM.

Details

Summary

It adds it for the target after inlining but before SROA where we can get most out of it.

Diff Detail

Repository
rL LLVM

Event Timeline

rampitec created this revision.Jun 19 2017, 2:14 PM
arsenm requested changes to this revision.Jun 19 2017, 3:25 PM
arsenm added inline comments.
lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
346–349 ↗(On Diff #103109)

Should add a comment explaining this

test/CodeGen/AMDGPU/infer-addrpace-pipeline.ll
1 ↗(On Diff #103109)

Why disable verify?

1 ↗(On Diff #103109)

I'm not sure if this requires asserts for the -debug-pass to work, but it might

This revision now requires changes to proceed.Jun 19 2017, 3:25 PM
rampitec added inline comments.Jun 19 2017, 3:29 PM
test/CodeGen/AMDGPU/infer-addrpace-pipeline.ll
1 ↗(On Diff #103109)

None of existing tests -debug-pass=Structure have REQUIRES: asserts.

1 ↗(On Diff #103109)

-disable-verify is here to not flood the output of pass structure. There is nothing to verify there anyway.

rampitec updated this revision to Diff 103116.Jun 19 2017, 3:32 PM
rampitec edited edge metadata.
rampitec marked an inline comment as done.

Added requested comment.

arsenm accepted this revision.Jun 19 2017, 4:14 PM

LGTM

lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
349 ↗(On Diff #103116)

Typo address spaces

This revision is now accepted and ready to land.Jun 19 2017, 4:14 PM
rampitec marked an inline comment as done.Jun 19 2017, 4:17 PM
This revision was automatically updated to reflect the committed changes.