1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/test/Transforms/GlobalDCE
Benjamin Kramer fedd86f086 Fix a scalability issue with complex ConstantExprs.
This is basically the same fix in three different places. We use a set to avoid
walking the whole tree of a big ConstantExprs multiple times.

For example: (select cmp, (add big_expr 1), (add big_expr 2))
We don't want to visit big_expr twice here, it may consist of thousands of
nodes.

The testcase exercises this by creating an insanely large ConstantExprs out of
a loop. It's questionable if the optimizer should ever create those, but this
can be triggered with real C code. Fixes PR15714.

llvm-svn: 179458
2013-04-13 12:53:18 +00:00
..
2002-07-17-CastRef.ll
2002-07-17-ConstantRef.ll
2002-08-17-FunctionDGE.ll Change tests from "opt %s" to "opt < %s" so that opt doesn't see the 2009-09-11 18:01:28 +00:00
2002-08-17-WorkListTest.ll
2002-09-12-Redeletion.ll
2003-07-01-SelfReference.ll
2003-10-09-PreserveWeakGlobals.ll Change tests from "opt %s" to "opt < %s" so that opt doesn't see the 2009-09-11 18:01:28 +00:00
2009-01-05-DeadAliases.ll
2009-02-17-AliasUsesAliasee.ll
basicvariabletest.ll
complex-constantexpr.ll Fix a scalability issue with complex ConstantExprs. 2013-04-13 12:53:18 +00:00
externally_available.ll
lit.local.cfg