HomePhabricator

[AMDGPU] Fix Livereg computation during epilogue insertion

Authored by arsenm on Jun 26 2019, 1:35 PM.

Description

[AMDGPU] Fix Livereg computation during epilogue insertion

The LivePhysRegs calculated in order to find a scratch register in the
epilogue code wrongly uses 'LiveIns'. Instead, it should use the
'Liveout' sets. For the liveness, also considering the operands of
the terminator (return) instruction which is the insertion point for
the scratch-exec-copy instruction.

Patch by Christudasan Devadasan

llvm-svn: 364470

Details

Committed
arsenmJun 26 2019, 1:35 PM
Parents
rG3d12971e1c2f: [X86] Rework the logic in LowerBuildVectorv16i8 to make better use of…
Branches
Unknown
Tags
Unknown