This is an archive of the discontinued LLVM Phabricator instance.

[IR] Take operand bundles into account for call argument readonly/writeonly
ClosedPublic

Authored by nikic on Oct 27 2022, 3:48 AM.

Details

Summary

We currently only take operand bundle effects into account when querying the function-level memory attributes. However, I believe that we also need to do the same for parameter attributes. For example, a call with deopt bundle to a function with readnone parameter attribute cannot treat that parameter as readnone, because the deopt bundle may read it.

Diff Detail

Event Timeline

nikic created this revision.Oct 27 2022, 3:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 27 2022, 3:48 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
nikic requested review of this revision.Oct 27 2022, 3:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 27 2022, 3:48 AM
nikic updated this revision to Diff 471919.Oct 31 2022, 1:23 AM

Update BasicAA test.

jdoerfert accepted this revision.Oct 31 2022, 9:58 AM

LG, operand bundles should be taken into account here too.

This revision is now accepted and ready to land.Oct 31 2022, 9:58 AM