Do not run frame verification if target does not use frame instructions

llvm-svn: 300807
This commit is contained in:
Serge Pavlov 2017-04-20 01:34:04 +00:00
parent 479ba8ee0e
commit 802aa667d5
1 changed files with 2 additions and 0 deletions

View File

@ -2030,6 +2030,8 @@ namespace {
void MachineVerifier::verifyStackFrame() {
unsigned FrameSetupOpcode = TII->getCallFrameSetupOpcode();
unsigned FrameDestroyOpcode = TII->getCallFrameDestroyOpcode();
if (FrameSetupOpcode == ~0u && FrameDestroyOpcode == ~0u)
return;
SmallVector<StackStateOfBB, 8> SPState;
SPState.resize(MF->getNumBlockIDs());