[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
Wed Apr 6 08:27:28 PDT 2022
bcl5980 created this revision.
bcl5980 added reviewers: craig.topper, pengfei, spatel, RKSimon.
Herald added subscribers: StephenFan, hiraditya.
Herald added a project: All.
bcl5980 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
getNodeIfExists will clear original node flags, so if we only check node exist or not we should use doesNodeExist
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
@@ -23397,7 +23397,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.420876.patch
Type: text/x-patch
Size: 502 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220406/73830fcb/attachment.bin>
More information about the llvm-commits
mailing list