aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2025-05-13 07:37:21 +0200
committerGitHub <noreply@github.com>2025-05-13 07:37:21 +0200
commit2f9323bc5bea09b728ea285ede08d50517eaac67 (patch)
tree9ff26192bd5402bc46350bf7ef4e97a9ba6f0b0b /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
parent619ac3d1ef4b953cd416110b8cb88131f068212b (diff)
downloadllvm-2f9323bc5bea09b728ea285ede08d50517eaac67.zip
llvm-2f9323bc5bea09b728ea285ede08d50517eaac67.tar.gz
llvm-2f9323bc5bea09b728ea285ede08d50517eaac67.tar.bz2
DAG: Stop forcibly adding nsz to expanded minnum/maxnum (#139615)
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 856e9d8..a476b19 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -8490,9 +8490,7 @@ TargetLowering::createSelectForFMINNUM_FMAXNUM(SDNode *Node,
SDValue Op1 = Node->getOperand(0);
SDValue Op2 = Node->getOperand(1);
SDValue SelCC = DAG.getSelectCC(SDLoc(Node), Op1, Op2, Op1, Op2, Pred);
- // Copy FMF flags, but always set the no-signed-zeros flag
- // as this is implied by the FMINNUM/FMAXNUM semantics.
- SelCC->setFlags(Node->getFlags() | SDNodeFlags::NoSignedZeros);
+ SelCC->setFlags(Node->getFlags());
return SelCC;
}