[NFC][Alignment] Remove max functions between Align and MaybeAlign
authorGuillaume Chatelet <gchatelet@google.com>
Sat, 18 Jun 2022 14:34:11 +0000 (14:34 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Mon, 20 Jun 2022 08:37:48 +0000 (08:37 +0000)
commitf1255186c7c4a631c051e05ed12ea79ed091141d
tree7fe7660560cbfd5bc5ddb8642f0307849354c213
parent009fe0755e47ef824aa4066d51db75aa9021399b
[NFC][Alignment] Remove max functions between Align and MaybeAlign

`llvm::max(Align, MaybeAlign)` and `llvm::max(MaybeAlign, Align)` are
not used often enough to be required. They also make the code more opaque.

Differential Revision: https://reviews.llvm.org/D128121
llvm/include/llvm/Support/Alignment.h
llvm/lib/LTO/LTO.cpp
llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
llvm/lib/Target/Hexagon/HexagonVExtract.cpp
llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
llvm/lib/Transforms/Utils/InlineFunction.cpp
llvm/lib/Transforms/Utils/MemoryTaggingSupport.cpp
llvm/unittests/Support/AlignmentTest.cpp