1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/test/Transforms/GlobalDCE
Chandler Carruth e6c6ee9be7 Test the different scenarios of GlobalDCE and comdats more
systematically and document in the test what all is going on.

This replaces the PR-named test that was the only coverage for GlobalDCE
and comdats previously. I wrote this because I wasn't certain how
comdat DCE was supposed to work and wanted to step through what
GlobalDCE did to fully understand it. After talking to folks and reading
the code and really staring at things it all makes sense but it seemed
good to help write down some of this in a more explicit and fully
covering test case.

For example, it seemed like a bug that GlobalDCE didn't consider comdat
participation of ifuncs. Specifically it seemed like an accident because
testing didn't really cover that case. But in fact, ifuncs specifically
cannot participate in a comdat despite having that API. The new test
case covers this and explicitly documents that DCE gets to fire here
even though there are comdats involved.

Also, we didn't have any positive tests for the challenging cases such
as usage cycles between comdat participants that might make them seem
alive except that there is no external edge into the cycle.

llvm-svn: 290537
2016-12-26 08:54:01 +00:00
..
2002-07-17-CastRef.ll
2002-07-17-ConstantRef.ll
2002-08-17-FunctionDGE.ll
2002-08-17-WorkListTest.ll
2002-09-12-Redeletion.ll
2003-07-01-SelfReference.ll
2003-10-09-PreserveWeakGlobals.ll
2009-01-05-DeadAliases.ll
2009-02-17-AliasUsesAliasee.ll
basicvariabletest.ll
comdats.ll Test the different scenarios of GlobalDCE and comdats more 2016-12-26 08:54:01 +00:00
complex-constantexpr.ll
deadblockaddr.ll
externally_available.ll
global_ctors_integration.ll
global_ctors.ll
global-ifunc.ll [GlobalDCE, Misc] Don't remove functions referenced by ifuncs 2016-05-04 00:20:48 +00:00
indirectbr.ll