[llvm-dev] RFC: We should stop merging allocas in the inliner

Mehdi Amini via llvm-dev llvm-dev at lists.llvm.org
Thu Aug 4 09:56:28 PDT 2016


> On Aug 4, 2016, at 9:48 AM, Chandler Carruth via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> On Thu, Aug 4, 2016 at 9:44 AM Joerg Sonnenberger via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote:
> On Mon, Aug 01, 2016 at 04:47:49AM +0000, Chandler Carruth via llvm-dev wrote:
> > Chris added alloca merging in the inliner a looooong time ago, 2009. The
> > reason he added it was because at the time we didn't do stack coloring and
> > without it we had serious stack size problems in LLVM.
> 
> Do we have any way to hunt for stack size regressions? I've been hit by
> some serious bugs in this area in GCC in the past and I would prefer to
> not repeat that experience with LLVM.
> 
> My technique was to log the stack size and build a bunch of code, and then analyze the logs before and after. It seemed really effective though?
> 
> I also have some tests (sadly internal) that check stacksize is under some bound and those tend to serve is good indicators that something has gone badly wrong. For example, without the Clang tricks at -O0, we couldn't get their tests to pass.

Are these “clang tricks” some indications of weaknesses in LLVM on this aspect?

— 
Mehdi

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160804/003f36d5/attachment.html>


More information about the llvm-dev mailing list