This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Disable rematerialization of cndmask
AbandonedPublic

Authored by rampitec on Jan 20 2022, 11:24 AM.

Details

Summary

VOP2e promoted to VOP3 is marked as rematerializable because it does
not use implicit vcc, but that shall exclude cndmask. A result of
the cndmask instruction uses exec as a mask, so I believe it may not
move across basic blocks.

Diff Detail

Event Timeline

rampitec created this revision.Jan 20 2022, 11:24 AM
rampitec requested review of this revision.Jan 20 2022, 11:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 20 2022, 11:24 AM
Herald added a subscriber: wdng. · View Herald Transcript
foad added a comment.Jan 21 2022, 3:42 AM

A result of the cndmask instruction uses exec as a mask

As noted on D117814, I don't understand this.

A result of the cndmask instruction uses exec as a mask

As noted on D117814, I don't understand this.

Scalar result is different when you move it across basic blocks.

rampitec abandoned this revision.Jan 21 2022, 9:50 AM