MachineVerifier: Handle the optional def operand in a PATCHPOINT instruction.
authorAlex Lorenz <arphaman@gmail.com>
Mon, 10 Aug 2015 21:47:36 +0000 (21:47 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Mon, 10 Aug 2015 21:47:36 +0000 (21:47 +0000)
commite5101e2016311c315119c8ad50a970b6b0c87cc7
treedbf27dde0675367ef8271061e49255d9faaaf8b6
parentc25c7944f07f198cc50f47cdf6b82ff13b56b396
MachineVerifier: Handle the optional def operand in a PATCHPOINT instruction.

The PATCHPOINT instructions have a single optional defined register operand,
but the machine verifier can't verify the optional defined register operands.
This commit makes sure that the machine verifier won't report an error when a
PATCHPOINT instruction doesn't have its optional defined register operand.
This change will allow us to enable the machine verifier for the code
generation tests for the patchpoint intrinsics.

Reviewers: Juergen Ributzka
llvm-svn: 244513
llvm/lib/CodeGen/MachineVerifier.cpp
llvm/test/CodeGen/X86/patchpoint-verifiable.mir [new file with mode: 0644]