[ShrinkWrap][PEI] Do not insert epilogue for unreachable blocks.
authorQuentin Colombet <qcolombet@apple.com>
Fri, 10 Jul 2015 22:09:55 +0000 (22:09 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Fri, 10 Jul 2015 22:09:55 +0000 (22:09 +0000)
commit722aa9573bf4d6b1a0b29fd3bd573fefafc20ebb
treeb6c75c79eb291cb1e353245dcd250cc3b6add0fa
parent7ebb7ed7d0954bf7d82bf3fd60b8988d8929f42f
[ShrinkWrap][PEI] Do not insert epilogue for unreachable blocks.

Although this is not incorrect to insert such code, it is useless
and it hurts the binary size.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241946 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/PrologEpilogInserter.cpp
test/CodeGen/AArch64/arm64-shrink-wrapping.ll
test/CodeGen/X86/x86-shrink-wrapping.ll