Thanks for the bug report - looks like its still happening on trunk: Compiler Explorer
Raised issue: Failed to detect pattern for “llvm.bswap.i64” in some of my test cases with Clang 12, but no such problem with Clang 11 · Issue #60690 · llvm/llvm-project · GitHub