[Alignment][NFC] Migrate AtomicExpandPass to Align
authorGuillaume Chatelet <gchatelet@google.com>
Tue, 30 Jun 2020 09:54:45 +0000 (09:54 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Tue, 30 Jun 2020 09:54:45 +0000 (09:54 +0000)
commit2c5ff48e61b5611dee5696c103e654c98d7e43f1
treeae0a021b51d4e2bf66fc74795c295eaf10b5dec9
parent621f84567920bf5a8d79789f01a622115ec8252d
[Alignment][NFC] Migrate AtomicExpandPass to Align

This is a followup on D78403.
I'm unsure about `getAtomicOpAlign` overloads that take `AtomicRMWInst` and `AtomicCmpXchgInst`, shouldn't `getAlign` provide the correct answer already?

Differential Revision: https://reviews.llvm.org/D81369
llvm/include/llvm/IR/Instructions.h
llvm/lib/CodeGen/AtomicExpandPass.cpp
llvm/lib/IR/Instructions.cpp