This is an archive of the discontinued LLVM Phabricator instance.

Mark branches lowered from guards as !make.implicit
Needs ReviewPublic

Authored by dbakunevich on Oct 17 2022, 1:31 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

We need to be able to apply implicit null check speculation to branches lowered from llvm.experimental.guard. For this, add !make.implicit metadata on them.

Diff Detail

Event Timeline

dbakunevich created this revision.Oct 17 2022, 1:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 17 2022, 1:31 AM
dbakunevich requested review of this revision.Oct 17 2022, 1:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 17 2022, 1:31 AM
mkazantsev requested changes to this revision.Oct 17 2022, 2:52 AM

According to what I am seeing, the brahcnes are already marked as !make.implicit if such metadata was on call.

llvm/lib/Transforms/Utils/GuardUtils.cpp
49

I don't get it... Why do you want to remove !prof from them?

This revision now requires changes to proceed.Oct 17 2022, 2:52 AM
This revision now requires review to proceed.Oct 17 2022, 3:01 AM