Only run MF.verify() with EXPENSIVE_CHECKS=1.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140441 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jakob Stoklund Olesen 2011-09-24 01:11:19 +00:00
parent bb0a6126cf
commit 51f0c76419
2 changed files with 1 additions and 4 deletions

View File

@ -1423,7 +1423,7 @@ X86FrameLowering::adjustForSegmentedStacks(MachineFunction &MF) const {
checkMBB->addSuccessor(allocMBB);
checkMBB->addSuccessor(&prologueMBB);
#ifndef NDEBUG
#ifdef XDEBUG
MF.verify();
#endif
}

View File

@ -1,8 +1,5 @@
; RUN: llc < %s -mtriple=i686-linux -segmented-stacks | FileCheck %s -check-prefix=X32
; RUN: llc < %s -mtriple=x86_64-linux -segmented-stacks | FileCheck %s -check-prefix=X64
;
; X86FrameLowering::adjustForSegmentedStacks is inserting code after a RET.
; XFAIL: *
; Just to prevent the alloca from being optimized away
declare void @dummy_use(i32*, i32)