This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/SI: Eliminate tbuffer_store_* instruction with an undef value
ClosedPublic

Authored by tstellarAMD on Oct 8 2015, 9:02 AM.

Details

Reviewers
arsenm
Summary

LLVM does this optimization for normal stores, but it doesn't know
anything about the tbuffer_store instrinsics.

Diff Detail

Event Timeline

tstellarAMD retitled this revision from to AMDGPU/SI: Eliminate tbuffer_store_* instruction with an undef value.
tstellarAMD updated this object.
tstellarAMD added a reviewer: arsenm.
tstellarAMD added a subscriber: llvm-commits.
arsenm accepted this revision.Oct 10 2015, 3:45 PM
arsenm edited edge metadata.

LGTM, although I think this should be done in an IR pass though

lib/Target/AMDGPU/SIISelLowering.cpp
2015

You can use isUndef()

This revision is now accepted and ready to land.Oct 10 2015, 3:46 PM

Looks like patch was not committed.

arsenm closed this revision.Apr 5 2020, 8:23 AM

Patch would need to be redone for modern intrinsics