Skip to content

Commit

Permalink
Do not run frame verification if target does not use frame instructions
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300807 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
spavloff committed Apr 20, 2017
1 parent 786ac20 commit ff09ea4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/CodeGen/MachineVerifier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit ff09ea4

Please sign in to comment.