[llvm] f41e82c - [InstCombine] Fix confusing variable name.
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 27 03:38:48 PST 2020
Author: Jay Foad
Date: 2020-02-27T11:27:49Z
New Revision: f41e82c82cc82073cf08f60c96b61c4b0496b652
URL: https://github.com/llvm/llvm-project/commit/f41e82c82cc82073cf08f60c96b61c4b0496b652
DIFF: https://github.com/llvm/llvm-project/commit/f41e82c82cc82073cf08f60c96b61c4b0496b652.diff
LOG: [InstCombine] Fix confusing variable name.
Added:
Modified:
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
index 7f231fb6ce40..7b73e52a122b 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
@@ -5799,10 +5799,10 @@ Instruction *InstCombiner::foldFCmpIntToFPConst(FCmpInst &I, Instruction *LHSI,
}
} else {
// See if the RHS value is < UnsignedMin.
- APFloat SMin(RHS.getSemantics());
- SMin.convertFromAPInt(APInt::getMinValue(IntWidth), true,
+ APFloat UMin(RHS.getSemantics());
+ UMin.convertFromAPInt(APInt::getMinValue(IntWidth), false,
APFloat::rmNearestTiesToEven);
- if (SMin.compare(RHS) == APFloat::cmpGreaterThan) { // umin > 12312.0
+ if (UMin.compare(RHS) == APFloat::cmpGreaterThan) { // umin > 12312.0
if (Pred == ICmpInst::ICMP_NE || Pred == ICmpInst::ICMP_UGT ||
Pred == ICmpInst::ICMP_UGE)
return replaceInstUsesWith(I, Builder.getTrue());
More information about the llvm-commits
mailing list