summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-cov/SourceCoverageView.cpp
diff options
context:
space:
mode:
authorPatrik Hagglund <patrik.h.hagglund@ericsson.com>2014-09-09 07:47:00 +0000
committerPatrik Hagglund <patrik.h.hagglund@ericsson.com>2014-09-09 07:47:00 +0000
commit57d315b7c18c4e56f6d20ff8f497e1e9c2ba1a9b (patch)
tree65b865d18041041e629d1fd790b8b579c393abd2 /llvm/tools/llvm-cov/SourceCoverageView.cpp
parent52dc3c852157f5be470afb464d0d26e9ace20c93 (diff)
downloadbcm5719-llvm-57d315b7c18c4e56f6d20ff8f497e1e9c2ba1a9b.tar.gz
bcm5719-llvm-57d315b7c18c4e56f6d20ff8f497e1e9c2ba1a9b.zip
[MachineSinking] Conservatively clear kill flags after coalescing.
This solves the problem of having a kill flag inside a loop with a definition of the register prior to the loop: %vreg368<def> ... Inside loop: %vreg520<def> = COPY %vreg368 %vreg568<def,tied1> = add %vreg341<tied0>, %vreg520<kill> => was coalesced into => %vreg568<def,tied1> = add %vreg341<tied0>, %vreg368<kill> MachineVerifier then complained: *** Bad machine code: Virtual register killed in block, but needed live out. *** The kill flag for %vreg368 is incorrect, and is cleared by this patch. This is similar to the clearing done at the end of MachineSinking::SinkInstruction(). Patch provided by Jonas Paulsson. Reviewed by Quentin Colombet and Juergen Ributzka. llvm-svn: 217427
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageView.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud