[PATCH] D123224: [x86] Replace getNodeIfExists to doesNodeExist when only check node exist

chenglin.bi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 7 09:34:24 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf72b3a506b1d: [x86] Replace getNodeIfExists to doesNodeExist when only check node exist (authored by bcl5980).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123224/new/

https://reviews.llvm.org/D123224

Files:
  llvm/lib/Target/X86/X86ISelLowering.cpp


Index: llvm/lib/Target/X86/X86ISelLowering.cpp
===================================================================
--- llvm/lib/Target/X86/X86ISelLowering.cpp
+++ llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -23398,7 +23398,7 @@
     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())


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123224.421243.patch
Type: text/x-patch
Size: 502 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220407/256260bd/attachment.bin>


More information about the llvm-commits mailing list