Re-commit r265039 "[X86] Merge adjacent stack adjustments in eliminateCallFramePseudo...
authorHans Wennborg <hans@hanshq.net>
Thu, 7 Apr 2016 00:05:49 +0000 (00:05 +0000)
committerHans Wennborg <hans@hanshq.net>
Thu, 7 Apr 2016 00:05:49 +0000 (00:05 +0000)
commitab16be799c24f3d10e71463b0a943723f9972d3c
tree976540ab68147897ad374803c88fd2cc62f13797
parent4c20bef1ef1d29e8824dbf68ee91f072dd1b2f09
Re-commit r265039 "[X86] Merge adjacent stack adjustments in eliminateCallFramePseudoInstr (PR27140)"

Third time's the charm? The previous attempt (r265345) caused ASan test
failures on X86, as broken CFI caused stack traces to not work.

This version of the patch makes sure not to merge with stack adjustments
that have CFI, and to not add merged instructions' offests to the CFI
about to be generated.

This is already covered by the lit tests; I just got the expectations
wrong previously.

llvm-svn: 265623
llvm/lib/Target/X86/X86FrameLowering.cpp
llvm/test/CodeGen/X86/2006-05-02-InstrSched1.ll
llvm/test/CodeGen/X86/fold-push.ll
llvm/test/CodeGen/X86/force-align-stack-alloca.ll
llvm/test/CodeGen/X86/localescape.ll
llvm/test/CodeGen/X86/memset-2.ll
llvm/test/CodeGen/X86/movtopush.ll
llvm/test/CodeGen/X86/push-cfi-debug.ll
llvm/test/CodeGen/X86/push-cfi.ll