[llvm] r300807 - Do not run frame verification if target does not use frame instructions
Serge Pavlov via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 19 18:34:04 PDT 2017
Author: sepavloff
Date: Wed Apr 19 20:34:04 2017
New Revision: 300807
URL: http://llvm.org/viewvc/llvm-project?rev=300807&view=rev
Log:
Do not run frame verification if target does not use frame instructions
Modified:
llvm/trunk/lib/CodeGen/MachineVerifier.cpp
Modified: llvm/trunk/lib/CodeGen/MachineVerifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineVerifier.cpp?rev=300807&r1=300806&r2=300807&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineVerifier.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineVerifier.cpp Wed Apr 19 20:34:04 2017
@@ -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());
More information about the llvm-commits
mailing list