This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Propagate dead flag during pre-RA exec mask optimizations
ClosedPublic

Authored by critson on Jul 11 2020, 8:41 PM.

Details

Summary

Preserve SCC dead flags in SIOptimizeExecMaskingPreRA.
This helps with removing redundant s_andn2 instructions later.

Diff Detail

Event Timeline

critson created this revision.Jul 11 2020, 8:41 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 11 2020, 8:41 PM
arsenm added inline comments.Jul 13 2020, 6:06 AM
llvm/lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp
172–173

You know the exact 2 opcodes here, so you can just hardcode the scc index (which I think is just the last operand in both cases)

critson updated this revision to Diff 277457.Jul 13 2020, 9:17 AM

Hard code SCC operand number.

rampitec accepted this revision.Jul 13 2020, 9:51 AM
This revision is now accepted and ready to land.Jul 13 2020, 9:51 AM
This revision was automatically updated to reflect the committed changes.