[AMDGPU] Moving SI_RETURN_TO_EPILOG handling out of SIInsertSkips.
authorChristudasan Devadasan <Christudasan.Devadasan@amd.com>
Wed, 17 Jun 2020 08:39:04 +0000 (14:09 +0530)
committerChristudasan Devadasan <Christudasan.Devadasan@amd.com>
Mon, 29 Jun 2020 15:11:53 +0000 (20:41 +0530)
commit226cda58d50555f626737c3cb9dffef0cf3d906c
tree5ecf937b269fd98c67a4c45fb5d610e9e9a318d6
parent58f2be9671a802acda2f74d2d8105a59ed119933
[AMDGPU] Moving SI_RETURN_TO_EPILOG handling out of SIInsertSkips.

For now, moving it to SIPreEmitPeephole.
Should find a right place to have this code.

Reviewed By: nhaehnle

Differential revision: https://reviews.llvm.org/D77544
llvm/lib/Target/AMDGPU/SIInsertSkips.cpp
llvm/lib/Target/AMDGPU/SIPreEmitPeephole.cpp
llvm/test/CodeGen/AMDGPU/transform-block-with-return-to-epilog.ll [new file with mode: 0644]