LiveRangeCalc: Don't start liveranges of PHI instruction at the block begin.
authorMatthias Braun <matze@braunis.de>
Fri, 20 Feb 2015 23:43:14 +0000 (23:43 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 20 Feb 2015 23:43:14 +0000 (23:43 +0000)
commit876e7172eed7e37f4ebf97a432dea7223b85ede5
tree493c5d60581fc6efb70036e127ec596aef8dcbff
parent162feb5f8e45fbdb786d3439cb575dc6eb9da89f
LiveRangeCalc: Don't start liveranges of PHI instruction at the block begin.

Summary:
Letting them begin at the PHI instruction slightly simplifies the code
but more importantly avoids breaking the assumption that live ranges
starting at the block begin are also live at the end of the predecessor
blocks. The MachineVerifier checks that but was apparently never run in
the few instances where liveranges are calculated for machine-SSA
functions.

Reviewers: qcolombet

Subscribers: llvm-commits

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

llvm-svn: 230093
llvm/lib/CodeGen/LiveRangeCalc.cpp