[llvm] [SLP][NFC] Address follow-up cleanups in SLPUtils (PR #210016)

Antonio Frighetto via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 16 02:35:44 PDT 2026


================
@@ -221,7 +224,7 @@ bool allSameOpcode(ArrayRef<Value *> VL) {
   bool IsCmpOp = isa<CmpInst>(MainOp);
   CmpInst::Predicate BasePred = IsCmpOp ? cast<CmpInst>(MainOp)->getPredicate()
                                         : CmpInst::BAD_ICMP_PREDICATE;
-  return std::all_of(It, VL.end(), [&](Value *V) {
+  return all_of(iterator_range(It, VL.end()), [&](Value *V) {
----------------
antoniofrighetto wrote:

```suggestion
  return all_of(make_range(It, VL.end()), [&](Value *V) {
```

https://github.com/llvm/llvm-project/pull/210016


More information about the llvm-commits mailing list