[LLVMdev] PATCH allow for promoting any size struct arguments
sabre at nondot.org
Sat Apr 19 12:50:31 PDT 2008
On Apr 18, 2008, at 6:53 AM, Matthijs Kooijman wrote:
> the ArgumentPromotion pass replaces aggregrate function arguments by
> individual arguments. The default pass only does this when the
> aggregrate has
> 3 or less elements, otherwise the code will be unchanged.
> I have a need to always promote aggregrate arguments, even when
> there are a
> lot of them.
> The attached patch adds a "maxElements" argument to ArgPromotion's
> and to createArgumentPromotionPass with a default value of 3 to
> preserve the
> original behaviour.
Looks great to me, applied:
More information about the llvm-dev