This is an archive of the discontinued LLVM Phabricator instance.

[Pipeline] Remove early InstCombine in ThinLTO post link sample profile pipeline
ClosedPublic

Authored by aeubanks on Mar 14 2023, 3:10 PM.

Details

Summary

With opaque pointers, all function pointer types are the same, meaning there should be no bitcasts.

Internal benchmarks with SampleFDO look neutral.

This was added in D36333.

Diff Detail

Event Timeline

aeubanks created this revision.Mar 14 2023, 3:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 14 2023, 3:10 PM
aeubanks requested review of this revision.Mar 14 2023, 3:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 14 2023, 3:10 PM
tejohnson accepted this revision.Mar 14 2023, 5:07 PM

lgtm, but please wait to see if @davidxl wants to re-anchor any of the comments there, specifically the FIXME.

llvm/lib/Passes/PassBuilderPipelines.cpp
976

@davidxl is this comment still needed?

This revision is now accepted and ready to land.Mar 14 2023, 5:07 PM
davidxl accepted this revision.Mar 14 2023, 5:59 PM
davidxl added inline comments.
llvm/lib/Passes/PassBuilderPipelines.cpp
976

this comment is obsolete as bitcast is no longer there (to block exposing direct calls).