mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-31 10:34:17 +00:00
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
This commit is contained in:
parent
002b44f1d7
commit
8f4aa333d0
@ -1392,7 +1392,7 @@ void RegReductionPriorityQueue<SF>::AddPseudoTwoAddrDeps() {
|
|||||||
continue;
|
continue;
|
||||||
// Don't constrain nodes with physical register defs if the
|
// Don't constrain nodes with physical register defs if the
|
||||||
// predecessor can clobber them.
|
// predecessor can clobber them.
|
||||||
if (SuccSU->hasPhysRegDefs) {
|
if (SuccSU->hasPhysRegDefs && SU->hasPhysRegClobbers) {
|
||||||
if (canClobberPhysRegDefs(SuccSU, SU, TII, TRI))
|
if (canClobberPhysRegDefs(SuccSU, SU, TII, TRI))
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user