This is an archive of the discontinued LLVM Phabricator instance.

[DeadArgElim] Do not optimize builtin annotated calls.
AbandonedPublic

Authored by jeroen.dobbelaere on Mar 1 2021, 3:16 AM.

Details

Summary

Do not optimize builtin annotated calls, based on the visibility on a
possible implementation. Other optimization passes might still need the
operand.

This fixes https://bugs.llvm.org/show_bug.cgi?id=49022

Diff Detail

Event Timeline

jeroen.dobbelaere requested review of this revision.Mar 1 2021, 3:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2021, 3:16 AM

This is an attempt to trigger the discussion. This patch fixes the observed issue, but it might not be the right place to do ?

uabelho added a subscriber: uabelho.Mar 1 2021, 3:20 AM
fhahn added a comment.Mar 1 2021, 8:23 AM

This is an attempt to trigger the discussion. This patch fixes the observed issue, but it might not be the right place to do ?

I am not sure if that's the right place to fix it. It seems like we cannot really trust builtin in this case and there probably are other places that would also need fixing?

Herald added a project: Restricted Project. · View Herald TranscriptApr 18 2023, 3:12 AM
jeroen.dobbelaere abandoned this revision.Apr 18 2023, 7:57 AM