[CodeGen] Fixed unreachable with -print-machineinstrs and custom pseudo source value
authorTim Renouf <tpr.llvm@botech.co.uk>
Tue, 27 Mar 2018 21:14:04 +0000 (21:14 +0000)
committerTim Renouf <tpr.llvm@botech.co.uk>
Tue, 27 Mar 2018 21:14:04 +0000 (21:14 +0000)
commit4db0960420b748870117969041d50a7465d785c7
treea1f9c7072a4633f909f30b4b0072c855ab0804f3
parent33dc01861aad4fb293d3290e4edd22ba829e51de
[CodeGen] Fixed unreachable with -print-machineinstrs and custom pseudo source value

Summary:
Rev 327580 "[CodeGen] Use MIR syntax for MachineMemOperand printing"
broke -print-machineinstrs for us on AMDGPU, because we have custom
pseudo source values, and MIR serialization does not implement that.

This commit at least restores the functionality of -print-machineinstrs,
even if it does not properly implement the missing MIR serialization
functionality.

Differential Revision: https://reviews.llvm.org/D44871

Change-Id: I44961c0b90bf6d48c01484ed7a4e466fd300db66
llvm-svn: 328668
llvm/lib/CodeGen/MachineOperand.cpp
llvm/test/CodeGen/AMDGPU/print-mir-custom-pseudo.ll [new file with mode: 0644]