aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2020-10-12 21:31:12 +0000
committerDimitry Andric <dim@FreeBSD.org>2020-10-12 21:31:12 +0000
commit30078f49665261b45a7cebc2f05a5206301e29a6 (patch)
treec144d80de428947ddcadee92c244c6ffccbcedd5 /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
parentd189cf5a4676d763c4e28d7a597c55761e356832 (diff)
Vendor import of llvm-project branch release/11.xvendor/llvm-project/llvmorg-11.0.0-0-g176249bd673
llvmorg-11.0.0-0-g176249bd673 (aka 11.0.0 release).
Notes
Notes: svn path=/vendor/llvm-project/release-11.x/; revision=366653 svn path=/vendor/llvm-project/llvmorg-11.0.0-0-g176249bd673/; revision=366654; tag=vendor/llvm-project/llvmorg-11.0.0-0-g176249bd673
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 64af293caf9e..8b3e6189a07f 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -5751,10 +5751,8 @@ SDValue TargetLowering::getNegatedExpression(SDValue Op, SelectionDAG &DAG,
// If we already have the use of the negated floating constant, it is free
// to negate it even it has multiple uses.
- if (!Op.hasOneUse() && CFP.use_empty()) {
- RemoveDeadNode(CFP);
+ if (!Op.hasOneUse() && CFP.use_empty())
break;
- }
Cost = NegatibleCost::Neutral;
return CFP;
}