[llvm] d0cc912 - [VPlan] Use equal_to in isUsedByLoadStoreAddr (NFC) (#210911)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 21 02:23:10 PDT 2026
Author: Ramkumar Ramachandra
Date: 2026-07-21T09:23:05Z
New Revision: d0cc9123eb14cae514e6f4e77cf5d1e3c32b6ebe
URL: https://github.com/llvm/llvm-project/commit/d0cc9123eb14cae514e6f4e77cf5d1e3c32b6ebe
DIFF: https://github.com/llvm/llvm-project/commit/d0cc9123eb14cae514e6f4e77cf5d1e3c32b6ebe.diff
LOG: [VPlan] Use equal_to in isUsedByLoadStoreAddr (NFC) (#210911)
Added:
Modified:
llvm/lib/Transforms/Vectorize/VPlanUtils.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/VPlanUtils.cpp b/llvm/lib/Transforms/Vectorize/VPlanUtils.cpp
index 26d34304eb8f9..a1e6eb14059cd 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanUtils.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanUtils.cpp
@@ -756,8 +756,7 @@ bool vputils::isUsedByLoadStoreAddress(const VPValue *V) {
for (VPUser *U : Cur->users()) {
auto *VPI = dyn_cast<VPInstruction>(U);
if (VPI && VPI->getMask() == Cur &&
- none_of(VPI->operandsWithoutMask(),
- [Cur](VPValue *Op) { return Op == Cur; }))
+ none_of(VPI->operandsWithoutMask(), equal_to(Cur)))
continue;
if (match(U, m_VPInstruction<Instruction::Load>()))
continue;
More information about the llvm-commits
mailing list