[SLP][NFC] Rename a couple of variables and replace an if-else with an std::min
authorVasileios Porpodas <vporpodas@google.com>
Wed, 10 May 2023 02:07:21 +0000 (19:07 -0700)
committerVasileios Porpodas <vporpodas@google.com>
Wed, 10 May 2023 16:37:58 +0000 (09:37 -0700)
commitdda2a5d4570e1cccc30f078844e8e9b39b1b4d7a
tree7ba531666ff41ed1f7f6cd206c91c9ecefe0799c
parent689715f335aeffc0e9583ac1b2a5629b6dd47876
[SLP][NFC] Rename a couple of variables and replace an if-else with an std::min

- Rename `LimitForRegisterSize` to `MaxVFOnly` to make the meaning of the limit less ambiguous
- Rename `OpsWidth` to `ActualVF`, which makes it clear that this is the VF we are using for vectorization.
- Replace the if-else code for the initialization of OpsWidth with an std::min.

Differential Revision: https://reviews.llvm.org/D150241
llvm/include/llvm/Transforms/Vectorize/SLPVectorizer.h
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp