This is an archive of the discontinued LLVM Phabricator instance.

InstCombine: Broaden copy-constant-to-alloca optimization
ClosedPublic

Authored by arsenm on May 8 2020, 2:08 PM.

Details

Summary

Consider any constant memory type, not just global constants. AMDGPU
kernel parameters are effectively global constants, but appear as
either reads from an intrinsic derived pointer or function argument.

Diff Detail

Event Timeline

arsenm created this revision.May 8 2020, 2:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 8 2020, 2:08 PM
asbirlea accepted this revision.May 8 2020, 3:28 PM

LGTM.

This revision is now accepted and ready to land.May 8 2020, 3:28 PM