From: Serge Pavlov Date: Thu, 20 Apr 2017 01:34:04 +0000 (+0000) Subject: Do not run frame verification if target does not use frame instructions X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ff09ea4e984baa63d4f3f6486b6e46cfdee8232e;p=llvm Do not run frame verification if target does not use frame instructions git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300807 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/MachineVerifier.cpp b/lib/CodeGen/MachineVerifier.cpp index d392c044bd7..84bd670105e 100644 --- a/lib/CodeGen/MachineVerifier.cpp +++ b/lib/CodeGen/MachineVerifier.cpp @@ -2030,6 +2030,8 @@ namespace { void MachineVerifier::verifyStackFrame() { unsigned FrameSetupOpcode = TII->getCallFrameSetupOpcode(); unsigned FrameDestroyOpcode = TII->getCallFrameDestroyOpcode(); + if (FrameSetupOpcode == ~0u && FrameDestroyOpcode == ~0u) + return; SmallVector SPState; SPState.resize(MF->getNumBlockIDs());