[all-commits] [llvm/llvm-project] 165e36: [VPlan] Assert can IV is only used by increments d...

Florian Hahn via All-commits all-commits at lists.llvm.org
Wed Jan 19 02:10:35 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 165e36bf180eecb32fa5442fd5c4d43388a136fb
      https://github.com/llvm/llvm-project/commit/165e36bf180eecb32fa5442fd5c4d43388a136fb
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-01-19 (Wed, 19 Jan 2022)

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

  Log Message:
  -----------
  [VPlan] Assert can IV is only used by increments during epilogue vec.

After resetting the start value of the canonical IV, it might not be
canonical any more. Add an assertion to make sure it is only used by its
increment, to avoid potential mis-use. Suggested in D117140.




More information about the All-commits mailing list