This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Fix kill flag state for replaced operands
Needs ReviewPublic

Authored by dstuttard on Mar 15 2022, 6:01 AM.

Details

Reviewers
rampitec
cdevadas
Summary

When copying operands as part of this optimsation, use the kill flag for the
replaced operand, rather than just the From operand.

Diff Detail

Event Timeline

dstuttard created this revision.Mar 15 2022, 6:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 15 2022, 6:01 AM
dstuttard requested review of this revision.Mar 15 2022, 6:01 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 15 2022, 6:01 AM

Picked this issue up in some testing - seems a logical fix.
I have a reproducer, but even the cut-down isn't that clean - do you think this requires a test?

dstuttard updated this revision to Diff 415405.Mar 15 2022, 6:12 AM

Pushed an earlier commit by mistake

Picked this issue up in some testing - seems a logical fix.
I have a reproducer, but even the cut-down isn't that clean - do you think this requires a test?

Definitely should have a test

Typo in the description: "optimsation".

Reverse ping