Skip to content

Commit

Permalink
AMDGPU: Drop FP_ROUND second value check
Browse files Browse the repository at this point in the history
This doesn't mean what I thought it meant and is an optimization
hint flag.
  • Loading branch information
arsenm committed May 24, 2023
1 parent abf1abb commit 0fe83eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llvm/lib/Target/AMDGPU/SIISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11139,8 +11139,7 @@ SDValue SITargetLowering::performFPRoundCombine(SDNode *N,
return SDValue();

if (TruncSrc.getOpcode() != AMDGPUISD::FMED3 ||
TruncSrc.getValueType() != MVT::f32 || !TruncSrc.hasOneUse() ||
!isNullConstant(N->getOperand(1)))
TruncSrc.getValueType() != MVT::f32 || !TruncSrc.hasOneUse())
return SDValue();

SelectionDAG &DAG = DCI.DAG;
Expand Down

0 comments on commit 0fe83eb

Please sign in to comment.