This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Partially respect nobuiltin in libcall simplifier
ClosedPublic

Authored by arsenm on Jul 31 2023, 5:42 AM.

Details

Reviewers
jhuber6
yaxunl
jmmartinez
rampitec
sameerds
Group Reviewers
Restricted Project
Summary

There are more contexts where it's not handled correctly but this is
the simplest one.

Diff Detail

Unit TestsFailed

Event Timeline

arsenm created this revision.Jul 31 2023, 5:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 31 2023, 5:42 AM
arsenm requested review of this revision.Jul 31 2023, 5:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 31 2023, 5:42 AM
Herald added a subscriber: wdng. · View Herald Transcript
jmmartinez accepted this revision.Jul 31 2023, 6:09 AM
This revision is now accepted and ready to land.Jul 31 2023, 6:09 AM
sameerds added inline comments.
llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp
495

This seems to ignore nobuiltin if a callee is present, but the documentation for nobuiltin seems to say something different. Should the short-circuiting OR be swapped here?

sameerds accepted this revision as: sameerds.Jul 31 2023, 6:15 AM
sameerds added inline comments.
llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp
495

Oh wait. I am reading this wrong. Sorry!