From: Dan Gohman Date: Tue, 24 Mar 2009 00:50:07 +0000 (+0000) Subject: Minor compile-time optimization; don't bother checking X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8f4aa333d02d0f48f90f4604d894a73ee53edcb5;p=oota-llvm.git Minor compile-time optimization; don't bother checking canClobberPhysRegDefs if the successor node doesn't clobber any physical registers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67587 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp index 39c4f4e85ca..30dc4768aa0 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp @@ -1392,7 +1392,7 @@ void RegReductionPriorityQueue::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; }