This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/SI: Propagate the Kill flag in storeRegToStackSlot and eliminateFrameIndex
ClosedPublic

Authored by cfang on Jun 16 2016, 9:46 AM.

Details

Summary

This patch properly propagates the Kill flag in storeRegToStackSlot and eliminateFrameIndex functions.

Note that the the case with implicit use of the SuperReg, only the last such implicit use carries the KIll flag.

Diff Detail

Event Timeline

cfang updated this revision to Diff 60986.Jun 16 2016, 9:46 AM
cfang retitled this revision from to AMDGPU/SI: Propagate the Kill flag in storeRegToStackSlot and eliminateFrameIndex.
cfang updated this object.
cfang added reviewers: arsenm, tstellarAMD.
cfang added subscribers: arsenm, llvm-commits.
arsenm added inline comments.Jun 16 2016, 11:24 AM
lib/Target/AMDGPU/SIRegisterInfo.cpp
460

This can also use getKillRegState

512

You can move the other condition into getKillRegState

cfang updated this revision to Diff 60999.Jun 16 2016, 11:40 AM

Update based on Matt's comments.

cfang marked 2 inline comments as done.Jun 16 2016, 11:42 AM

Done to use getKillRegState based on Matt;s comments!

arsenm accepted this revision.Jun 16 2016, 12:02 PM
arsenm edited edge metadata.

LGTM

lib/Target/AMDGPU/SIRegisterInfo.h
195

I think this can be const

This revision is now accepted and ready to land.Jun 16 2016, 12:02 PM
cfang closed this revision.Jun 16 2016, 2:51 PM

AMDGPU/SI: Propagate the Kill flag in storeRegToStackSlot and elimina…

…teFrameIndex

Reviewers: arsenm, tstellarAMD

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272958 91177308-0d34-0410-b5e6-96231b3b80d8