[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)
commit8afcf3a4082447149062d47e1e11ae5963434bdb
tree8e19da1fee2677a22da9fb43af094131c153772f
parent23ec6a97d14e59ef1e07a7271f1b244d3a8042b0
[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).

llvm-svn: 188105
llvm/lib/CodeGen/StackProtector.cpp
llvm/test/CodeGen/X86/stack-protector.ll