1//===- ScalarEvolution.cpp - Scalar Evolution Analysis ----------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 6204 unchanged lines hidden (view full) --- 6213 6214 const SCEV *FoundLHS = getSCEV(ICI->getOperand(0)); 6215 const SCEV *FoundRHS = getSCEV(ICI->getOperand(1)); 6216 6217 // Balance the types. The case where FoundLHS' type is wider than 6218 // LHS' type is checked for above. 6219 if (getTypeSizeInBits(LHS->getType()) > 6220 getTypeSizeInBits(FoundLHS->getType())) { |
6221 if (CmpInst::isSigned(FoundPred)) { |
6222 FoundLHS = getSignExtendExpr(FoundLHS, LHS->getType()); 6223 FoundRHS = getSignExtendExpr(FoundRHS, LHS->getType()); 6224 } else { 6225 FoundLHS = getZeroExtendExpr(FoundLHS, LHS->getType()); 6226 FoundRHS = getZeroExtendExpr(FoundRHS, LHS->getType()); 6227 } 6228 } 6229 --- 1491 unchanged lines hidden --- |