mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-30 16:17:05 +00:00 
			
		
		
		
	Keep track of incoming argument's location while emitting LiveIns.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124611 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		| @@ -210,8 +210,15 @@ MachineRegisterInfo::EmitLiveInCopies(MachineBasicBlock *EntryMBB, | ||||
|         LiveIns.erase(LiveIns.begin() + i); | ||||
|         --i; --e; | ||||
|       } else { | ||||
|         DebugLoc DL; | ||||
|         // If there is a location for this live in then use it. | ||||
|         DenseMap<unsigned, DebugLoc>::iterator DLI =  | ||||
|           LiveInLocs.find(LiveIns[i].second); | ||||
|         if (DLI != LiveInLocs.end()) | ||||
|           DL = DLI->second; | ||||
|  | ||||
|         // Emit a copy. | ||||
|         BuildMI(*EntryMBB, EntryMBB->begin(), DebugLoc(), | ||||
|         BuildMI(*EntryMBB, EntryMBB->begin(), DL, | ||||
|                 TII.get(TargetOpcode::COPY), LiveIns[i].second) | ||||
|           .addReg(LiveIns[i].first); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user