This ugly patch works around a GCC bug where it is compiling SelectCode to
authorChris Lattner <sabre@nondot.org>
Tue, 20 Dec 2005 19:41:03 +0000 (19:41 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 20 Dec 2005 19:41:03 +0000 (19:41 +0000)
commit2f0f9a69733fc587ff77ed4866db6bc32964a70a
treedfa4798e33abef69ab72f83b093280535fc21b74
parentaca0901dd3f02f83d13c2f818d0141d644d8e5b0
This ugly patch works around a GCC bug where it is compiling SelectCode to
use too much stack space, overflowing the stack for large functions.  Instead
of emitting new SDOperands in each match block, we emit some common ones at
the top of SelectCode then reuse them when possible.

This reduces the stack size of SelectCode from 28K to 21K.  Note that GCC
compiles it to 512 bytes :-/

I've filed GCC PR 25505 to track this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24882 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/DAGISelEmitter.cpp