mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 17:29:19 +00:00
If the first argument to a function is a 'this' argument and the second has the sret attribute, the ArgumentPromotion pass may promote the 'this' argument to more than one argument, violating the IR constraint that 'sret' may only be applied to the first or second argument. Although this IR constraint is arguably unnecessary, it highlighted the fact that ArgPromotion does not need to preserve this attribute. Dropping the attribute reduces register pressure in the backend by avoiding the register copy required by sret. Because sret implies noalias, we also replace the former with the latter. Differential Revision: http://reviews.llvm.org/D10353 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239488 91177308-0d34-0410-b5e6-96231b3b80d8 |
||
---|---|---|
.. | ||
2008-02-01-ReturnAttrs.ll | ||
2008-07-02-array-indexing.ll | ||
2008-09-07-CGUpdate.ll | ||
2008-09-08-CGUpdateSelfEdge.ll | ||
aggregate-promote.ll | ||
attrs.ll | ||
basictest.ll | ||
byval-2.ll | ||
byval.ll | ||
callgraph-update.ll | ||
chained.ll | ||
control-flow2.ll | ||
control-flow.ll | ||
crash.ll | ||
dbg.ll | ||
fp80.ll | ||
inalloca.ll | ||
pr3085.ll | ||
reserve-tbaa.ll | ||
sret.ll | ||
tail.ll | ||
variadic.ll |