This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Fix copying a machine operand
ClosedPublic

Authored by foad on Oct 11 2021, 7:15 AM.

Details

Summary

Without this I get:

    • Bad machine code: Instruction has operand with wrong parent set ***
  • function: available_externally_test
  • basic block: %bb.0 (0x7dad598)
  • instruction: %0:r600_treg32_x = MOV 1, 0, 0, 0, $alu_literal_x, 0, 0, 0, -1, 1, $pred_sel_off, @available_externally, 0

Diff Detail

Event Timeline

foad created this revision.Oct 11 2021, 7:15 AM
foad requested review of this revision.Oct 11 2021, 7:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 11 2021, 7:15 AM
rampitec accepted this revision.Oct 11 2021, 11:35 AM
This revision is now accepted and ready to land.Oct 11 2021, 11:35 AM
This revision was automatically updated to reflect the committed changes.