diff options
author | Dan Gohman <gohman@apple.com> | 2008-09-17 15:25:49 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-09-17 15:25:49 +0000 |
commit | f2d8a25c86ba97b406b2e190bbb504fe1e4680f6 (patch) | |
tree | 7ff9943581aca75d41dedcefa3f844ce9a4c0814 | |
parent | 469bc76e282e1a2f2b646ee1686e9d39337d0223 (diff) | |
download | external_llvm-f2d8a25c86ba97b406b2e190bbb504fe1e4680f6.tar.gz external_llvm-f2d8a25c86ba97b406b2e190bbb504fe1e4680f6.tar.bz2 external_llvm-f2d8a25c86ba97b406b2e190bbb504fe1e4680f6.zip |
Don't worry about clobbering physical register defs that aren't used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56281 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp index b9dcc25dc7..0cf155ea4d 100644 --- a/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp +++ b/lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp @@ -1709,6 +1709,8 @@ static bool canClobberPhysRegDefs(const SUnit *SuccSU, const SUnit *SU, MVT VT = N->getValueType(i); if (VT == MVT::Flag || VT == MVT::Other) continue; + if (!N->hasAnyUseOfValue(i)) + continue; unsigned Reg = ImpDefs[i - NumDefs]; for (;*SUImpDefs; ++SUImpDefs) { unsigned SUReg = *SUImpDefs; |