This is an archive of the discontinued LLVM Phabricator instance.

Simplify WPD test case for hybrid LTO and thinTLO.
ClosedPublic

Authored by mingmingl on Dec 20 2021, 7:05 PM.

Details

Summary
  1. remove verbose information (function linkage types, alignment, TBAA) 2) remove unused element or replace irrelevant element with null (as placeholders) in virtual table, remove unused definitions of deleted elements accordingly.

Diff Detail

Event Timeline

mingmingl created this revision.Dec 20 2021, 7:05 PM
mingmingl published this revision for review.Dec 20 2021, 7:05 PM
mingmingl added a reviewer: tejohnson.

Hi Teresa,

I'm taking the liberty to create a separate revision for clean-ups.
Herald added a project: Restricted Project. · View Herald TranscriptDec 20 2021, 7:06 PM
mingmingl updated this revision to Diff 395573.Dec 20 2021, 7:11 PM

resolve No newline at end of file by using a different editor

tejohnson accepted this revision.Dec 21 2021, 5:50 AM

lgtm with another possible cleanup noted below.

llvm/test/ThinLTO/X86/Inputs/devirt_after_filtering_unreachable_lib.ll
37–38

I think the ".virtual" type metadata can also be removed here and below.

This revision is now accepted and ready to land.Dec 21 2021, 5:50 AM
mingmingl updated this revision to Diff 395703.Dec 21 2021, 9:21 AM

Remove ".virtual" type metadata.

mingmingl marked an inline comment as done.Dec 21 2021, 9:22 AM

thanks for review!

This revision was landed with ongoing or failed builds.Dec 21 2021, 9:27 AM
This revision was automatically updated to reflect the committed changes.