> > Create an explicit copy for byval parameters even > > when inlining a readonly function. > > Are you sure this is correct? There is a difference between 'const', > 'pure' and readnone/readonly. Further, isn't it always safe to elide > the copy for readnone functions?
A readnone function could write to a byval parameter, using it as local storage (which it is). If you don't make an explicit copy when inlining, these become writes to the storage that the caller passed in. I'm pretty sure this is correct. D. _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits