[all-commits] [llvm/llvm-project] 64fe32: [llvm] Migrate away from ArrayRef(std::nullopt) (N...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Thu Jun 19 21:31:49 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 64fe3236476a9a85977abf5489414bbb2de2109c
      https://github.com/llvm/llvm-project/commit/64fe3236476a9a85977abf5489414bbb2de2109c
  Author: Kazu Hirata <kazu at google.com>
  Date:   2025-06-19 (Thu, 19 Jun 2025)

  Changed paths:
    M llvm/include/llvm/CodeGen/BasicTTIImpl.h
    M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
    M llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

  Log Message:
  -----------
  [llvm] Migrate away from ArrayRef(std::nullopt) (NFC) (#144967)

ArrayRef has a constructor that accepts std::nullopt.  This
constructor dates back to the days when we still had llvm::Optional.

Since the use of std::nullopt outside the context of std::optional is
kind of abuse and not intuitive to new comers, I would like to move
away from the constructor and eventually remove it.

This patch takes care of the llvm side of the migration.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list