This is an archive of the discontinued LLVM Phabricator instance.

[DeadArgElim][FIX] Drop more attributes when the return type changes
AbandonedPublic

Authored by jdoerfert on Aug 18 2020, 10:46 AM.

Details

Summary

We should not have align or noundef on void return types.

Diff Detail

Event Timeline

jdoerfert created this revision.Aug 18 2020, 10:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 18 2020, 10:46 AM
jdoerfert requested review of this revision.Aug 18 2020, 10:46 AM

It seems align is allowed on non-pointers, will investigate.

fhahn added a comment.Sep 6 2020, 7:46 AM

This looks fine, but might be better to split up into 2 patches (1 for undef, 1 for align)? Small nit for the title: this patch fixes AttributeFuncs::typeIncompatible, which as a consequence fixes DeadArgElim, but potentially other places too. Might be good to reflect that in the title.

This looks fine, but might be better to split up into 2 patches (1 for undef, 1 for align)? Small nit for the title: this patch fixes AttributeFuncs::typeIncompatible, which as a consequence fixes DeadArgElim, but potentially other places too. Might be good to reflect that in the title.

I will revisit this soon. split it and fix the tests.

jdoerfert abandoned this revision.Sep 8 2020, 11:27 AM

Split into D87304 and D87306