Skip to content

Commit f41e82c

Browse files
committed
[InstCombine] Fix confusing variable name.
1 parent 4bb3cb2 commit f41e82c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5799,10 +5799,10 @@ Instruction *InstCombiner::foldFCmpIntToFPConst(FCmpInst &I, Instruction *LHSI,
57995799
}
58005800
} else {
58015801
// See if the RHS value is < UnsignedMin.
5802-
APFloat SMin(RHS.getSemantics());
5803-
SMin.convertFromAPInt(APInt::getMinValue(IntWidth), true,
5802+
APFloat UMin(RHS.getSemantics());
5803+
UMin.convertFromAPInt(APInt::getMinValue(IntWidth), false,
58045804
APFloat::rmNearestTiesToEven);
5805-
if (SMin.compare(RHS) == APFloat::cmpGreaterThan) { // umin > 12312.0
5805+
if (UMin.compare(RHS) == APFloat::cmpGreaterThan) { // umin > 12312.0
58065806
if (Pred == ICmpInst::ICMP_NE || Pred == ICmpInst::ICMP_UGT ||
58075807
Pred == ICmpInst::ICMP_UGE)
58085808
return replaceInstUsesWith(I, Builder.getTrue());

0 commit comments

Comments
 (0)