[PATCH] D115780: [LTO][WPD] Simplify mustBeUnreachableFunction and test after D115492
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 14 19:22:24 PST 2021
MaskRay created this revision.
MaskRay added reviewers: LuMa, tejohnson.
Herald added subscribers: ormris, steven_wu, hiraditya, inglorion.
MaskRay requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
An well-formed IR function definition must have an entry basic block and
a well-formed IR basic block must have one terminator so the emptiness
check can be simplified.
Also simplify the test a bit.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D115780
Files:
llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
llvm/test/ThinLTO/X86/Inputs/devirt_hybrid_after_filtering_unreachable_lib.ll
llvm/test/ThinLTO/X86/devirt_hybrid_after_filtering_unreachable.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115780.394455.patch
Type: text/x-patch
Size: 8238 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211215/68fd3007/attachment.bin>
More information about the llvm-commits
mailing list