OSDN Git Service

[PS4] Guarantee an instruction after a 'noreturn' call.
authorPaul Robinson <paul_robinson@playstation.sony.com>
Thu, 24 Mar 2016 00:10:03 +0000 (00:10 +0000)
committerPaul Robinson <paul_robinson@playstation.sony.com>
Thu, 24 Mar 2016 00:10:03 +0000 (00:10 +0000)
commitd0c6d209f8839ac32de0b6a5253686894165927e
treef634f70d5668c1460272c57ccb7cc583f54fedef
parent6f5ddf896554ef1d43db443be8c6be72d49600c0
[PS4] Guarantee an instruction after a 'noreturn' call.

We need the "return address" of a noreturn call to be within the
bounds of the calling function; TrapUnreachable turns 'unreachable'
into a 'ud2' instruction, which has that desired effect.

Differential Revision: http://reviews.llvm.org/D18414

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264224 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86TargetMachine.cpp
test/CodeGen/X86/br-fold.ll
test/CodeGen/X86/ps4-noreturn.ll [new file with mode: 0644]