[all-commits] [llvm/llvm-project] f12551: [NFC][Alignment] Remove max functions between Alig...

Guillaume Chatelet via All-commits all-commits at lists.llvm.org
Mon Jun 20 01:38:17 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f1255186c7c4a631c051e05ed12ea79ed091141d
      https://github.com/llvm/llvm-project/commit/f1255186c7c4a631c051e05ed12ea79ed091141d
  Author: Guillaume Chatelet <gchatelet at google.com>
  Date:   2022-06-20 (Mon, 20 Jun 2022)

  Changed paths:
    M llvm/include/llvm/Support/Alignment.h
    M llvm/lib/LTO/LTO.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
    M llvm/lib/Target/Hexagon/HexagonVExtract.cpp
    M llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
    M llvm/lib/Transforms/IPO/AttributorAttributes.cpp
    M llvm/lib/Transforms/Utils/InlineFunction.cpp
    M llvm/lib/Transforms/Utils/MemoryTaggingSupport.cpp
    M llvm/unittests/Support/AlignmentTest.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list