[llvm] [SLP] NFC. Replace TreeEntry::setOperandsInOrder with VLOperands. (PR #113880)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 19 13:08:38 PST 2024
================
@@ -2542,7 +2546,8 @@ class BoUpSLP {
ArrayRef<OperandData> Op0 = OpsVec.front();
for (const OperandData &Data : Op0)
UniqueValues.insert(Data.V);
- for (ArrayRef<OperandData> Op : drop_begin(OpsVec, 1)) {
+ for (ArrayRef<OperandData> Op : make_range(
+ OpsVec.begin() + 1, OpsVec.begin() + getNumOperands())) {
----------------
alexey-bataev wrote:
```suggestion
for (ArrayRef<OperandData> Op : ArrayRef(OpsVec).slice(1, getNumOperands())) {
```
https://github.com/llvm/llvm-project/pull/113880
More information about the llvm-commits
mailing list