This is an archive of the discontinued LLVM Phabricator instance.

llvm-reduce: Add reduction for invokes
ClosedPublic

Authored by arsenm on Jan 2 2023, 7:15 PM.

Details

Summary

Main thing I was unsure about was to whether try to delete the now
dead landing blocks, or leave that for the unreachable block reduction.

Personality function is not reduced, but that should be a separate
reduction on the function.

Fixes #58815

Diff Detail

Event Timeline

arsenm created this revision.Jan 2 2023, 7:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 2 2023, 7:15 PM
arsenm requested review of this revision.Jan 2 2023, 7:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 2 2023, 7:15 PM
Herald added a subscriber: wdng. · View Herald Transcript
nikic added a comment.Jan 3 2023, 2:25 AM

Main thing I was unsure about was to whether try to delete the now dead landing blocks, or leave that for the unreachable block reduction.

Especially as it runs directly afterwards, seems fine to leave them for the dedicated pass...

llvm/test/tools/llvm-reduce/reduce-invoke.ll
25

Broken check line

arsenm updated this revision to Diff 485959.Jan 3 2023, 4:57 AM

Fix broken check

nikic accepted this revision.Jan 3 2023, 5:01 AM

LG

This revision is now accepted and ready to land.Jan 3 2023, 5:01 AM