[stackprotector] Simplify SP Pass so that we emit different fail basic blocks for...
authorMichael Gottesman <mgottesman@apple.com>
Fri, 9 Aug 2013 21:26:18 +0000 (21:26 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Fri, 9 Aug 2013 21:26:18 +0000 (21:26 +0000)
commit236e389be4bb7f65e78bd378143b67f401f05338
tree09f093f716ef16d6a970f4466bae585d2080a003
parent4c71064129d1e5def34d74ee47c4f3beaa0a66df
[stackprotector] Simplify SP Pass so that we emit different fail basic blocks for each fail condition.

This patch decouples the stack protector pass so that we can support stack
protector implementations that do not use the IR level generated stack protector
fail basic block.

No codesize increase is caused by this change since the MI level tail merge pass
properly merges together the fail condition blocks (see the updated test).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188105 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/StackProtector.cpp
test/CodeGen/X86/stack-protector.ll