This is an archive of the discontinued LLVM Phabricator instance.

[Inliner] Don't removeDeadConstantUsers() when checking if a function is dead
ClosedPublic

Authored by aeubanks on Jan 13 2022, 10:11 AM.

Details

Summary

If a function has many uses, this can take a good chunk of compile times.

Diff Detail

Event Timeline

aeubanks created this revision.Jan 13 2022, 10:11 AM
aeubanks requested review of this revision.Jan 13 2022, 10:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 13 2022, 10:11 AM
nikic accepted this revision.Jan 13 2022, 2:16 PM

LGTM

llvm/lib/Transforms/IPO/Inliner.cpp
942–943

You can merge the if blocks as well.

This revision is now accepted and ready to land.Jan 13 2022, 2:16 PM