[all-commits] [llvm/llvm-project] 7302fe: [VPlan] Make blocksOnly work properly with ranges ...

Florian Hahn via All-commits all-commits at lists.llvm.org
Mon Apr 26 02:53:46 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7302fe432843bd7e9b41b50ddaa37781f62b08cf
      https://github.com/llvm/llvm-project/commit/7302fe432843bd7e9b41b50ddaa37781f62b08cf
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-04-26 (Mon, 26 Apr 2021)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlan.h
    M llvm/unittests/Transforms/Vectorize/VPlanTest.cpp

  Log Message:
  -----------
  [VPlan] Make blocksOnly work properly with ranges over const pointers.

When iterating over const blocks, the base type in the lambdas needs
to use const VPBlockBase *, otherwise it cannot be used with input
iterators over const VPBlockBase.

Also adjust the type of the input iterator range to const &, as it
does not take ownership of the input range.




More information about the All-commits mailing list