OSDN Git Service

In the below scenario, we must be able to skip the a DBG_VALUE instruction and
authorSumanth Gundapaneni <sgundapa@codeaurora.org>
Mon, 9 Jan 2017 17:45:02 +0000 (17:45 +0000)
committerSumanth Gundapaneni <sgundapa@codeaurora.org>
Mon, 9 Jan 2017 17:45:02 +0000 (17:45 +0000)
commite2818e528b46b24652b7f7fcd89fc95154a61ca8
tree12e6fe3af11f4ab3cb7dabc02e5482c925698414
parent9c61a35f9ebe2ca10afa3f25cdb93c9206dbd267
In the below scenario, we must be able to skip the a DBG_VALUE instruction and
remove the dead store.

%vreg0<def> = L2_loadri_io <fi#15>, 0; mem:LD4[%dataF](align=4)
DBG_VALUE %vreg0, %noreg, !"dataF", <!184>; IntRegs:%vreg0
S2_storeri_io <fi#15>, 0, %vreg0; mem:ST4[%dataF]

In reality, this kind of stores are eliminated before Stack Slot Coloring pass,
possibly in instruction lowering

Differential Revision: https://reviews.llvm.org/D26616

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291455 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/StackSlotColoring.cpp