[all-commits] [llvm/llvm-project] 3c126d: [Alignment] Replace commonAlignment with std::min

Guillaume Chatelet via All-commits all-commits at lists.llvm.org
Tue Jun 28 00:15:24 PDT 2022


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

  Changed paths:
    M llvm/include/llvm/Support/Alignment.h
    M llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    M llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/unittests/Support/AlignmentTest.cpp

  Log Message:
  -----------
  [Alignment] Replace commonAlignment with std::min

`commonAlignment` is a shortcut to pick the smallest of two `Align`
objects. As-is it doesn't bring much value compared to `std::min`.

Differential Revision: https://reviews.llvm.org/D128345




More information about the All-commits mailing list