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)
commit43e844c48bd76a2bfcd8344b1f804375a1a065e4
tree88a4c3df89af23c8485cc6d0cfb3e2c84ffb919c
parentb28578be8a0244f1b268229d15efce35989e0813
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244513 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineVerifier.cpp
test/CodeGen/X86/patchpoint-verifiable.mir [new file with mode: 0644]