Skip to content

Commit d4cbb1e

Browse files
c8efdtcxzyw
andauthored
Update llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
Co-authored-by: Yingwei Zheng <[email protected]>
1 parent 1a4fa35 commit d4cbb1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8222,7 +8222,7 @@ static Instruction *foldFCmpWithFloorAndCeil(FCmpInst &I,
82228222
// fcmp ule floor(x), x => fcmp ule -inf, x
82238223
if (FloorX)
82248224
return new FCmpInst(FCmpInst::FCMP_ULE,
8225-
ConstantFP::getInfinity(RHS->getType(), true), RHS,
8225+
ConstantFP::getInfinity(OpType, true), RHS,
82268226
"", &I);
82278227
break;
82288228
case FCmpInst::FCMP_UGT:

0 commit comments

Comments
 (0)