diff options
author | Dan Gohman <gohman@apple.com> | 2009-03-24 00:50:07 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-03-24 00:50:07 +0000 |
commit | f3746cbc561606febe0f56efc9ec4dcb4a39b65c (patch) | |
tree | 24372b90a40c973a053db5438928495286fb6639 /llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp | |
parent | 9a658d72db3e1bd33290d92fffe486eaea7a8f0f (diff) | |
download | bcm5719-llvm-f3746cbc561606febe0f56efc9ec4dcb4a39b65c.tar.gz bcm5719-llvm-f3746cbc561606febe0f56efc9ec4dcb4a39b65c.zip |
Minor compile-time optimization; don't bother checking
canClobberPhysRegDefs if the successor node doesn't
clobber any physical registers.
llvm-svn: 67587
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp index 39c4f4e85ca..30dc4768aa0 100644 --- a/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp @@ -1392,7 +1392,7 @@ void RegReductionPriorityQueue<SF>::AddPseudoTwoAddrDeps() { continue; // Don't constrain nodes with physical register defs if the // predecessor can clobber them. - if (SuccSU->hasPhysRegDefs) { + if (SuccSU->hasPhysRegDefs && SU->hasPhysRegClobbers) { if (canClobberPhysRegDefs(SuccSU, SU, TII, TRI)) continue; } |