mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
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
This commit is contained in:
parent
7fd7ca4e7f
commit
59932584a8
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user