mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-30 16:17:05 +00:00 
			
		
		
		
	LSR, one of the new Cost::isLoser() checks did not get merged in the previous checkin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140583 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		| @@ -745,9 +745,13 @@ void Cost::RateRegister(const SCEV *Reg, | ||||
|  | ||||
|     // Add the step value register, if it needs one. | ||||
|     // TODO: The non-affine case isn't precisely modeled here. | ||||
|     if (!AR->isAffine() || !isa<SCEVConstant>(AR->getOperand(1))) | ||||
|       if (!Regs.count(AR->getOperand(1))) | ||||
|     if (!AR->isAffine() || !isa<SCEVConstant>(AR->getOperand(1))) { | ||||
|       if (!Regs.count(AR->getOperand(1))) { | ||||
|         RateRegister(AR->getOperand(1), Regs, L, SE, DT); | ||||
|         if (isLoser()) | ||||
|           return; | ||||
|       } | ||||
|     } | ||||
|   } | ||||
|   ++NumRegs; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user