MachineVerifier: Improve register operand checks
authorMatthias Braun <matze@braunis.de>
Tue, 28 Nov 2017 03:54:20 +0000 (03:54 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 28 Nov 2017 03:54:20 +0000 (03:54 +0000)
commiteca985847ce948180e28e0d407d00e7b6ac35eaa
tree28653fc893747cd5aa1275c250cf25ef23bc9fe1
parenta6d5374ee685b43770ea2ac4ffc88cf4fe854906
MachineVerifier: Improve register operand checks

This fixes cases where we wouldn't perform various register operand
checks just because we didn't happen to have a definition in the
MCInstrDesc. This changes the code to only skip the tests that actually
depend on the MCInstrDesc definition.

This makes the machine verifier spot the problem from
https://llvm.org/PR33071 after the pass that actually caused it.

llvm-svn: 319141
llvm/lib/CodeGen/MachineVerifier.cpp