This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Optimize image_[load|store]_mip
ClosedPublic

Authored by piotr on Jun 10 2019, 3:50 AM.

Details

Summary

Replace image_load_mip/image_store_mip
with image_load/image_store if lod is 0.

Diff Detail

Event Timeline

piotr created this revision.Jun 10 2019, 3:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 10 2019, 3:50 AM

Should this be done on the intrinsics in instcombine instead?

piotr added a comment.Jun 10 2019, 5:41 AM

The patch has been created for consistency in the same way as https://reviews.llvm.org/D49483, where a similar optimisation was added.

arsenm accepted this revision.Jun 10 2019, 5:58 AM
This revision is now accepted and ready to land.Jun 10 2019, 5:58 AM
This revision was automatically updated to reflect the committed changes.