Add inferFunctionAttrsPass to the pipeline so that libfuncs get attributes (#52946)
I doubt this will make too much of a difference since we don't use too
many libfuncs, but it's also quite a cheap pass if it makes any
difference
---------
Co-authored-by: Valentin Churavy <vchuravy@users.noreply.github.com>