Don't insert stackrestore on deoptimizing returns
authorSanjoy Das <sanjoy@playingwithpointers.com>
Fri, 1 Apr 2016 02:51:30 +0000 (02:51 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Fri, 1 Apr 2016 02:51:30 +0000 (02:51 +0000)
commitf83ab6de56eeb651b1ce06ea98ada9175a2beb17
tree5d3ba00e67c95f3de501064f1a954de7e16e09e2
parent18b92968eabd0c3c79417e29d97e9ab502143ed3
Don't insert stackrestore on deoptimizing returns

They're not necessary (since the stack pointer is trivially restored on
return), and the way LLVM inserts the stackrestore calls breaks the
IR (we get a stackrestore between the deoptimize call and the return).

llvm-svn: 265101
llvm/lib/Transforms/Utils/InlineFunction.cpp
llvm/test/Transforms/Inline/deoptimize-intrinsic.ll