mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[LazyValueInfo] Simplify return after else
. NFCI.
llvm-svn: 270779
This commit is contained in:
parent
266b4e1255
commit
5d580adbad
@ -287,7 +287,7 @@ raw_ostream &operator<<(raw_ostream &OS, const LVILatticeVal &Val) {
|
||||
|
||||
if (Val.isNotConstant())
|
||||
return OS << "notconstant<" << *Val.getNotConstant() << '>';
|
||||
else if (Val.isConstantRange())
|
||||
if (Val.isConstantRange())
|
||||
return OS << "constantrange<" << Val.getConstantRange().getLower() << ", "
|
||||
<< Val.getConstantRange().getUpper() << '>';
|
||||
return OS << "constant<" << *Val.getConstant() << '>';
|
||||
@ -678,7 +678,7 @@ bool LazyValueInfoCache::solveBlockValue(Value *Val, BasicBlock *BB) {
|
||||
insertResult(Val, BB, Res);
|
||||
return true;
|
||||
}
|
||||
else if (BBI->getType()->isIntegerTy()) {
|
||||
if (BBI->getType()->isIntegerTy()) {
|
||||
if (isa<CastInst>(BBI)) {
|
||||
if (!solveBlockValueCast(Res, BBI, BB))
|
||||
return false;
|
||||
@ -1497,7 +1497,6 @@ ConstantRange LazyValueInfo::getConstantRange(Value *V, BasicBlock *BB,
|
||||
return ConstantRange(Width, /*isFullSet=*/false);
|
||||
if (Result.isConstantRange())
|
||||
return Result.getConstantRange();
|
||||
else
|
||||
return ConstantRange(Width, /*isFullSet=*/true);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user