https://gist.github.com/boomanaiden154/7f1400804c879e25a012d7907f3922c9 is the IR.
Running opt -mtriple=aarch64-unknown-linux-gnu -passes="default<O3>" <file path> -disable-output
will reproduce the issue. The file comes from compiling clang on Aarch64 when using the BOLT caches. More details on the failure are in #159367.