Add MachineVerifier check for AllVRegsAllocated MachineFunctionProperty
authorDerek Schuff <dschuff@google.com>
Tue, 29 Mar 2016 17:40:22 +0000 (17:40 +0000)
committerDerek Schuff <dschuff@google.com>
Tue, 29 Mar 2016 17:40:22 +0000 (17:40 +0000)
commit42666eeea22f582ba706290c9b565e83882813b6
tree845e2aab027b048d6fa352c3a3f3f07854ffe8ae
parentf46262e0b7a183c22b9384cd729c5fb0f05e5d38
Add MachineVerifier check for AllVRegsAllocated MachineFunctionProperty

Summary:
Check that any function that has the property set is free of virtual
register operands.

Also, it is actually VirtRegMap (and not the register allocators) that
acutally remove the VReg operands (except for RegAllocFast).

Reviewers: qcolombet

Subscribers: MatzeB, llvm-commits, qcolombet

Differential Revision: http://reviews.llvm.org/D18535

llvm-svn: 264755
llvm/lib/CodeGen/MachineVerifier.cpp
llvm/lib/CodeGen/RegAllocBasic.cpp
llvm/lib/CodeGen/RegAllocGreedy.cpp
llvm/lib/CodeGen/RegAllocPBQP.cpp
llvm/lib/CodeGen/VirtRegMap.cpp