[all-commits] [llvm/llvm-project] c5c4f0: [SLP] Simplify tryToFindDuplicates() (NFC) (#135766)
Gaëtan Bossu via All-commits
all-commits at lists.llvm.org
Tue Apr 29 06:47:43 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c5c4f0d11ca033acaab2d92b713cdab25c8ba555
https://github.com/llvm/llvm-project/commit/c5c4f0d11ca033acaab2d92b713cdab25c8ba555
Author: Gaëtan Bossu <gaetan.bossu at arm.com>
Date: 2025-04-29 (Tue, 29 Apr 2025)
Changed paths:
M llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Log Message:
-----------
[SLP] Simplify tryToFindDuplicates() (NFC) (#135766)
This NFC aims to simplify the control-flow and interfaces used in tryToFindDuplicates(). The point is to make it easier to understand where decisions for scalar de-duplication are made.
In particular:
- Limit indentation
- Rename some variables to better match their use case
- Always give consistent outputs for VL and ReuseShuffleIndices. This makes it possible to use the same code for building gather TreeEntry everywhere. This also allows to remove the TryToFindDuplicates lambda.
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