llvm-6502/lib
Benjamin Kramer 8848680ce0 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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179458 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-13 12:53:18 +00:00
..
Analysis Fix a scalability issue with complex ConstantExprs. 2013-04-13 12:53:18 +00:00
Archive
AsmParser Rationalize the formatting of these case labels. Having two sorted 2013-04-09 19:46:46 +00:00
Bitcode Whitespace cleanup 2013-04-01 02:28:07 +00:00
CodeGen MI-Sched: DEBUG formatting. 2013-04-13 06:07:49 +00:00
DebugInfo Rename the C function to create a SLPVectorizerPass to something sane and expose it in the header file. 2013-04-11 11:36:36 +00:00
ExecutionEngine Revert r179409 because it caused some warnings and some of the build bots fail. 2013-04-12 22:02:26 +00:00
IR Fix a scalability issue with complex ConstantExprs. 2013-04-13 12:53:18 +00:00
IRReader Measure time that IR parsing took as part of the -time-passes measurement. 2013-04-03 15:33:45 +00:00
Linker Specutively revert r178130. 2013-03-27 17:54:41 +00:00
MC [ms-inline asm] Add the implementation for the AOK_Delete kind, which was added 2013-04-12 16:26:42 +00:00
Object Finish templating MachObjectFile over endianness. 2013-04-13 01:45:40 +00:00
Option
Support Add a function to check if an argument list is too long. 2013-04-11 14:06:34 +00:00
TableGen Allow TableGen DAG arguments to be just a name. 2013-03-24 19:36:51 +00:00
Target Spill and restore PPC CR registers using the FP when we have one 2013-04-13 08:09:20 +00:00
Transforms Fix a scalability issue with complex ConstantExprs. 2013-04-13 12:53:18 +00:00
CMakeLists.txt Split out the IRReader header and the utility functions it provides into 2013-03-26 02:25:37 +00:00
LLVMBuild.txt Split out the IRReader header and the utility functions it provides into 2013-03-26 02:25:37 +00:00
Makefile Split out the IRReader header and the utility functions it provides into 2013-03-26 02:25:37 +00:00