AMD has up-streamed some LLVM optimizations and as well implemented some in-house changes. You can find the AMD optimized compiler binary AOCC (AMD Optimized C/C++ Compiler) here:
https://developer.amd.com/amd-aocc/
Following are the upstream changes:
1> Loop Versioning Licm
2> Enabling znver1 architecture and scheduler model.