summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/VirtRegMap.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-03-19 00:21:58 +0000
committerMatthias Braun <matze@braunis.de>2015-03-19 00:21:58 +0000
commita25e13aaf1364b899656d43a16a4f768135efc1f (patch)
treede074ec880448599512590c0c3df73e2b4a0e2bc /llvm/lib/CodeGen/VirtRegMap.cpp
parenta8f2f1da999b7ef1e5e16ec539164106018cb431 (diff)
downloadbcm5719-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/VirtRegMap.cpp')
-rw-r--r--llvm/lib/CodeGen/VirtRegMap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/VirtRegMap.cpp b/llvm/lib/CodeGen/VirtRegMap.cpp
index 7d3b0cea1c1..d9adfdf7b2e 100644
--- a/llvm/lib/CodeGen/VirtRegMap.cpp
+++ b/llvm/lib/CodeGen/VirtRegMap.cpp
@@ -286,7 +286,7 @@ void VirtRegRewriter::addMBBLiveIns() {
}
void VirtRegRewriter::rewrite() {
- bool NoSubRegLiveness = !MRI->tracksSubRegLiveness();
+ bool NoSubRegLiveness = !MRI->subRegLivenessEnabled();
SmallVector<unsigned, 8> SuperDeads;
SmallVector<unsigned, 8> SuperDefs;
SmallVector<unsigned, 8> SuperKills;
OpenPOWER on IntegriCloud