[all-commits] [llvm/llvm-project] b2cd81: [IR] Simplify comparisons with std::optional (NFC)...
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Thu Aug 22 10:20:17 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b2cd81c93831fe256bddec5efa5a2765400076de
https://github.com/llvm/llvm-project/commit/b2cd81c93831fe256bddec5efa5a2765400076de
Author: Kazu Hirata <kazu at google.com>
Date: 2024-08-22 (Thu, 22 Aug 2024)
Changed paths:
M llvm/lib/IR/VectorBuilder.cpp
Log Message:
-----------
[IR] Simplify comparisons with std::optional (NFC) (#105624)
For variable X of type std::optional, X && X.value_or(Y) == Z is
equivalent to X == Z when Y != Z.
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