mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-31 08:16:47 +00:00 
			
		
		
		
	[llvm-c][Disassembler] When printing latency information, skip scheduling
classes that are marked as Variant as those require an MI to pass to SubTargetInfo::resolveSchedClass. This is part of <rdar://problem/14687488>. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191864 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		| @@ -191,7 +191,9 @@ static int getLatency(LLVMDisasmContext *DC, const MCInst &Inst) { | |||||||
|   const MCInstrDesc& Desc = DC->getInstrInfo()->get(Inst.getOpcode()); |   const MCInstrDesc& Desc = DC->getInstrInfo()->get(Inst.getOpcode()); | ||||||
|   unsigned SCClass = Desc.getSchedClass(); |   unsigned SCClass = Desc.getSchedClass(); | ||||||
|   const MCSchedClassDesc *SCDesc = SCModel->getSchedClassDesc(SCClass); |   const MCSchedClassDesc *SCDesc = SCModel->getSchedClassDesc(SCClass); | ||||||
|   if (!SCDesc || !SCDesc->isValid()) |   // Resolving the variant SchedClass requires an MI to pass to | ||||||
|  |   // SubTargetInfo::resolveSchedClass. | ||||||
|  |   if (!SCDesc || !SCDesc->isValid() || SCDesc->isVariant()) | ||||||
|     return NoInformationAvailable; |     return NoInformationAvailable; | ||||||
|  |  | ||||||
|   // Compute output latency. |   // Compute output latency. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user