mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-30 16:17:05 +00:00 
			
		
		
		
	Annotate VirtRegRewriter debug output with slot indexes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123333 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		| @@ -171,6 +171,10 @@ namespace llvm { | |||||||
|       r2iMap_.erase(I); |       r2iMap_.erase(I); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |     SlotIndexes *getSlotIndexes() const { | ||||||
|  |       return indexes_; | ||||||
|  |     } | ||||||
|  |  | ||||||
|     SlotIndex getZeroIndex() const { |     SlotIndex getZeroIndex() const { | ||||||
|       return indexes_->getZeroIndex(); |       return indexes_->getZeroIndex(); | ||||||
|     } |     } | ||||||
|   | |||||||
| @@ -1133,7 +1133,7 @@ bool LocalRewriter::runOnMachineFunction(MachineFunction &MF, VirtRegMap &vrm, | |||||||
|         << MF.getFunction()->getName() << "':\n"); |         << MF.getFunction()->getName() << "':\n"); | ||||||
|   DEBUG(dbgs() << "**** Machine Instrs (NOTE! Does not include spills and" |   DEBUG(dbgs() << "**** Machine Instrs (NOTE! Does not include spills and" | ||||||
|         " reloads!) ****\n"); |         " reloads!) ****\n"); | ||||||
|   DEBUG(MF.dump()); |   DEBUG(MF.print(dbgs(), LIs->getSlotIndexes())); | ||||||
|  |  | ||||||
|   // Spills - Keep track of which spilled values are available in physregs |   // Spills - Keep track of which spilled values are available in physregs | ||||||
|   // so that we can choose to reuse the physregs instead of emitting |   // so that we can choose to reuse the physregs instead of emitting | ||||||
| @@ -1184,7 +1184,7 @@ bool LocalRewriter::runOnMachineFunction(MachineFunction &MF, VirtRegMap &vrm, | |||||||
|   } |   } | ||||||
|  |  | ||||||
|   DEBUG(dbgs() << "**** Post Machine Instrs ****\n"); |   DEBUG(dbgs() << "**** Post Machine Instrs ****\n"); | ||||||
|   DEBUG(MF.dump()); |   DEBUG(MF.print(dbgs(), LIs->getSlotIndexes())); | ||||||
|  |  | ||||||
|   // Mark unused spill slots. |   // Mark unused spill slots. | ||||||
|   MachineFrameInfo *MFI = MF.getFrameInfo(); |   MachineFrameInfo *MFI = MF.getFrameInfo(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user