[all-commits] [llvm/llvm-project] b4d23c: [LV] Fix missing precomptueCosts() in emitInvalidC...

Elvis Wang via All-commits all-commits at lists.llvm.org
Wed Nov 13 16:30:17 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b4d23cf6853a1e3971f27eae3b58609f77829252
      https://github.com/llvm/llvm-project/commit/b4d23cf6853a1e3971f27eae3b58609f77829252
  Author: Elvis Wang <elvis.wang at sifive.com>
  Date:   2024-11-14 (Thu, 14 Nov 2024)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    A llvm/test/Transforms/LoopVectorize/remarks-reduction-inloop.ll

  Log Message:
  -----------
  [LV] Fix missing precomptueCosts() in emitInvalidCostRemarks(). (#114918)

We should always update the `SkipComputation` which is set in
`VPCostContext` before VPlan compute costs.

This patch prevent the assertion of in-loop reduction in the
`VPReductionRecipe::computeCost()` and other potential assertions of
partially implemented VPlan-based cost model.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list