[IR] Check identical alignment for atomic instructions (#155349)
I noticed that `hasSameSpecialState()` checks alignment for
`load`/`store` instructions, but not for `cmpxchg` or `atomicrmw`, which
I assume is a bug. It looks like alignment for these instructions were
added in
https://github.com/llvm/llvm-project/commit/74c723757e69fbe7d85e42527d07b728113699ae.