Skip to content

Commit c5327b9

Browse files
[ConstantFolding] Fix typo in GetNVVMDenormMode (#151297)
Fix typo in function name of GetNVVMDenormMode (Denrom vs Denorm).
1 parent ded255e commit c5327b9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

llvm/include/llvm/IR/NVVMIntrinsicUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ inline APFloat::roundingMode GetRCPRoundingMode(Intrinsic::ID IntrinsicID) {
408408
llvm_unreachable("Checking rounding mode for invalid rcp intrinsic");
409409
}
410410

411-
inline DenormalMode GetNVVMDenromMode(bool ShouldFTZ) {
411+
inline DenormalMode GetNVVMDenormMode(bool ShouldFTZ) {
412412
if (ShouldFTZ)
413413
return DenormalMode::getPreserveSign();
414414
return DenormalMode::getIEEE();

llvm/lib/Analysis/ConstantFolding.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2631,22 +2631,22 @@ static Constant *ConstantFoldScalarCall1(StringRef Name,
26312631
case Intrinsic::nvvm_ceil_d:
26322632
return ConstantFoldFP(
26332633
ceil, APF, Ty,
2634-
nvvm::GetNVVMDenromMode(
2634+
nvvm::GetNVVMDenormMode(
26352635
nvvm::UnaryMathIntrinsicShouldFTZ(IntrinsicID)));
26362636

26372637
case Intrinsic::nvvm_fabs_ftz:
26382638
case Intrinsic::nvvm_fabs:
26392639
return ConstantFoldFP(
26402640
fabs, APF, Ty,
2641-
nvvm::GetNVVMDenromMode(
2641+
nvvm::GetNVVMDenormMode(
26422642
nvvm::UnaryMathIntrinsicShouldFTZ(IntrinsicID)));
26432643

26442644
case Intrinsic::nvvm_floor_ftz_f:
26452645
case Intrinsic::nvvm_floor_f:
26462646
case Intrinsic::nvvm_floor_d:
26472647
return ConstantFoldFP(
26482648
floor, APF, Ty,
2649-
nvvm::GetNVVMDenromMode(
2649+
nvvm::GetNVVMDenormMode(
26502650
nvvm::UnaryMathIntrinsicShouldFTZ(IntrinsicID)));
26512651

26522652
case Intrinsic::nvvm_rcp_rm_ftz_f:
@@ -2708,7 +2708,7 @@ static Constant *ConstantFoldScalarCall1(StringRef Name,
27082708
return nullptr;
27092709
return ConstantFoldFP(
27102710
sqrt, APF, Ty,
2711-
nvvm::GetNVVMDenromMode(
2711+
nvvm::GetNVVMDenormMode(
27122712
nvvm::UnaryMathIntrinsicShouldFTZ(IntrinsicID)));
27132713

27142714
// AMDGCN Intrinsics:

0 commit comments

Comments
 (0)