Skip to content

Commit f8c73ee

Browse files
dfukalovCopilot
andauthored
Update llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
Co-authored-by: Copilot <[email protected]>
1 parent 5185c3b commit f8c73ee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4892,8 +4892,9 @@ foldCmpSelectWithSharedConstant(SDNode *N, TargetLowering::DAGCombinerInfo &DCI,
48924892
const APFloat &Val = cast<ConstantFPSDNode>(ConstVal)->getValueAPF();
48934893
const GCNSubtarget *GCNST = static_cast<const GCNSubtarget *>(ST);
48944894

4895-
// Only optimize normal floating-point values, skip optimization for
4896-
// inlinable floating-point constants.
4895+
// Only optimize normal floating-point values (finite, non-zero, and
4896+
// non-subnormal as per IEEE 754), skip optimization for inlinable
4897+
// floating-point constants.
48974898
if (!Val.isNormal() || GCNST->getInstrInfo()->isInlineConstant(Val))
48984899
return SDValue();
48994900
} else {

0 commit comments

Comments
 (0)