[llvm] f72b3a5 - [x86] Replace getNodeIfExists to doesNodeExist when only check node exist
via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 7 09:34:09 PDT 2022
Author: chenglin.bi
Date: 2022-04-08T00:33:05+08:00
New Revision: f72b3a506b1dda4343b76cc84126394306a24ec0
URL: https://github.com/llvm/llvm-project/commit/f72b3a506b1dda4343b76cc84126394306a24ec0
DIFF: https://github.com/llvm/llvm-project/commit/f72b3a506b1dda4343b76cc84126394306a24ec0.diff
LOG: [x86] Replace getNodeIfExists to doesNodeExist when only check node exist
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D123224
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index ff67dcb27cb11..b3a170f60a312 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -23398,7 +23398,7 @@ bool X86TargetLowering::isFsqrtCheap(SDValue Op, SelectionDAG &DAG) const {
return true;
// We never want to use both SQRT and RSQRT instructions for the same input.
- if (DAG.getNodeIfExists(X86ISD::FRSQRT, DAG.getVTList(VT), Op))
+ if (DAG.doesNodeExist(X86ISD::FRSQRT, DAG.getVTList(VT), Op))
return false;
if (VT.isVector())
More information about the llvm-commits
mailing list