[PATCH] D128345: [Alignment] Replace commonAlignment with std::min

Guillaume Chatelet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 22 08:07:38 PDT 2022


gchatelet created this revision.
gchatelet added a reviewer: reames.
Herald added a subscriber: hiraditya.
Herald added a project: All.
gchatelet requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D128345

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128345.439027.patch
Type: text/x-patch
Size: 6326 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220622/aa781897/attachment.bin>


More information about the llvm-commits mailing list