diff options
author | Matthias Braun <matze@braunis.de> | 2015-03-19 00:21:58 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2015-03-19 00:21:58 +0000 |
commit | a25e13aaf1364b899656d43a16a4f768135efc1f (patch) | |
tree | de074ec880448599512590c0c3df73e2b4a0e2bc /llvm/lib/CodeGen/MachineVerifier.cpp | |
parent | a8f2f1da999b7ef1e5e16ec539164106018cb431 (diff) | |
download | bcm5719-llvm-a25e13aaf1364b899656d43a16a4f768135efc1f.tar.gz bcm5719-llvm-a25e13aaf1364b899656d43a16a4f768135efc1f.zip |
Do not track subregister liveness when it brings no benefits
Some subregisters are only to indicate different access sizes, while not
providing any way to actually divide the register up into multiple
disjunct parts. Avoid tracking subregister liveness in these cases as it
is not beneficial.
Differential Revision: http://reviews.llvm.org/D8429
llvm-svn: 232695
Diffstat (limited to 'llvm/lib/CodeGen/MachineVerifier.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineVerifier.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp index d39733be6c4..22990e3d5d7 100644 --- a/llvm/lib/CodeGen/MachineVerifier.cpp +++ b/llvm/lib/CodeGen/MachineVerifier.cpp @@ -1573,7 +1573,8 @@ void MachineVerifier::verifyLiveRangeSegment(const LiveRange &LR, if (!hasRead) { // When tracking subregister liveness, the main range must start new // values on partial register writes, even if there is no read. - if (!MRI->tracksSubRegLiveness() || LaneMask != 0 || !hasSubRegDef) { + if (!MRI->shouldTrackSubRegLiveness(Reg) || LaneMask != 0 || + !hasSubRegDef) { report("Instruction ending live segment doesn't read the register", MI); errs() << S << " in " << LR << '\n'; |