OSDN Git Service

This patch makes the inliner refuse to inline functions that have alloca
authorChris Lattner <sabre@nondot.org>
Thu, 12 Aug 2004 05:45:09 +0000 (05:45 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 12 Aug 2004 05:45:09 +0000 (05:45 +0000)
commitee45f4cbe409b2e89207f3c554e9121101c9e52e
treecea602fc956fe853deed08b10792ebf2a90bd64a
parenta1b6ae9d7cf39e4589192eac4ad2288ec29e2de1
This patch makes the inliner refuse to inline functions that have alloca
instructions in the body of the function (not the entry block).  This fixes
test/Programs/SingleSource/Regression/C/2004-08-12-InlinerAndAllocas.c
and test/Programs/External/SPEC/CINT2000/176.gcc on zion.

This should obviously be pulled into 1.3.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15684 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/InlineSimple.cpp