This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Add pass to expand memcpy/memmove/memset
ClosedPublic

Authored by arsenm on Feb 2 2017, 10:47 AM.

Details

Diff Detail

Event Timeline

arsenm created this revision.Feb 2 2017, 10:47 AM
kzhuravl accepted this revision.Feb 9 2017, 11:23 AM

LGTM with minor comments fixed.

lib/Target/AMDGPU/AMDGPULowerIntrinsics.cpp
1

Filename is different.

109

RUnning->Running.

This revision is now accepted and ready to land.Feb 9 2017, 11:23 AM
kzhuravl added inline comments.Feb 9 2017, 11:24 AM
lib/Target/AMDGPU/AMDGPULowerIntrinsics.cpp
119

Changed = expandMemIntrinsicUses(F)?

kzhuravl added inline comments.Feb 9 2017, 11:29 AM
lib/Target/AMDGPU/AMDGPULowerIntrinsics.cpp
119

Nevermind this one :) We want to always set it to true if it changed.

arsenm closed this revision.Feb 9 2017, 2:12 PM
arsenm marked 4 inline comments as done.

r294635

lib/Target/AMDGPU/AMDGPULowerIntrinsics.cpp
38

This is also wrong since it adds blocks and changes the CFG.

109

This is leftover debug printing, I've removed it