summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp
diff options
context:
space:
mode:
authorTim Shen <timshen91@gmail.com>2017-05-30 22:26:52 +0000
committerTim Shen <timshen91@gmail.com>2017-05-30 22:26:52 +0000
commit0bd0aa8f0742eec2c263095d3f7b459372364041 (patch)
tree3b404006698efbe1a50574126112a6a557a91041 /llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp
parentd276d85309f373f4482dbf8996f734d9f2f496c3 (diff)
downloadbcm5719-llvm-0bd0aa8f0742eec2c263095d3f7b459372364041.tar.gz
bcm5719-llvm-0bd0aa8f0742eec2c263095d3f7b459372364041.zip
[AntiDepBreaker] Revert r299124 and add a test.
Summary: AntiDepBreaker intends to add all live-outs, including the implicit CSRs, in StartBlock. r299124 was done without understanding that intention. Now with the live-ins propagated correctly (D32464), we can revert this change. Reviewers: MatzeB, qcolombet Subscribers: nemanjai, llvm-commits Differential Revision: https://reviews.llvm.org/D33697 llvm-svn: 304251
Diffstat (limited to 'llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp')
-rw-r--r--llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp b/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp
index 43b245c6640..5abf50e5bd1 100644
--- a/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp
+++ b/llvm/lib/CodeGen/AggressiveAntiDepBreaker.cpp
@@ -165,7 +165,7 @@ void AggressiveAntiDepBreaker::StartBlock(MachineBasicBlock *BB) {
for (const MCPhysReg *I = MF.getRegInfo().getCalleeSavedRegs(); *I;
++I) {
unsigned Reg = *I;
- if (!IsReturnBlock && !(Pristine.test(Reg) || BB->isLiveIn(Reg)))
+ if (!IsReturnBlock && !Pristine.test(Reg))
continue;
for (MCRegAliasIterator AI(Reg, TRI, true); AI.isValid(); ++AI) {
unsigned AliasReg = *AI;
OpenPOWER on IntegriCloud