[llvm] [VPlan] Use equal_to in isUsedByLoadStoreAddr (NFC) (PR #210911)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 21 01:46:16 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-transforms
Author: Ramkumar Ramachandra (artagnon)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/210911.diff
1 Files Affected:
- (modified) llvm/lib/Transforms/Vectorize/VPlanUtils.cpp (+1-2)
``````````diff
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;
``````````
</details>
https://github.com/llvm/llvm-project/pull/210911
More information about the llvm-commits
mailing list