This is an archive of the discontinued LLVM Phabricator instance.

[x86] Replace getNodeIfExists to doesNodeExist when only check node exist
ClosedPublic

Authored by bcl5980 on Apr 6 2022, 8:27 AM.

Details

Summary

getNodeIfExists will clear original node flags, so if we only check node exist or not we should use doesNodeExist

Diff Detail

Event Timeline

bcl5980 created this revision.Apr 6 2022, 8:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 6 2022, 8:27 AM
bcl5980 requested review of this revision.Apr 6 2022, 8:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 6 2022, 8:27 AM
craig.topper accepted this revision.Apr 6 2022, 8:30 AM

LGTM. Though I'm not sure X86ISD::FRSQRT ever has node flags.

This revision is now accepted and ready to land.Apr 6 2022, 8:30 AM
This revision was landed with ongoing or failed builds.Apr 7 2022, 9:34 AM
This revision was automatically updated to reflect the committed changes.