StackProtector: ignore debug insts when splitting blocks.
authorTim Northover <tnorthover@apple.com>
Thu, 10 Feb 2022 13:28:50 +0000 (13:28 +0000)
committerTim Northover <tnorthover@apple.com>
Fri, 11 Feb 2022 10:13:50 +0000 (10:13 +0000)
commit7605ca85f1a8e4e61e7de98856630d67da11aaae
treec835809dde2c2c08a6cb3b0ca94718c8a5d4cb1e
parent5d639034652dda9659e45ffd863e5052ab8ffc4a
StackProtector: ignore debug insts when splitting blocks.

When deciding where to split a block to insert stack guard checks, we should
move past any debug instructions we see that might (e.g.) be separating a tail
call from its frame wrangling.
llvm/lib/CodeGen/CodeGenCommonISel.cpp
llvm/test/CodeGen/AArch64/tailcall-ssp-split-debug.ll [new file with mode: 0644]