[all-commits] [llvm/llvm-project] 8009c1: [LV][VPlan] Prevent calculate cost for skiped inst...

Elvis Wang via All-commits all-commits at lists.llvm.org
Mon Feb 24 19:09:30 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8009c1fd81ad0b6ac65724d2b134a92db48f8fbf
      https://github.com/llvm/llvm-project/commit/8009c1fd81ad0b6ac65724d2b134a92db48f8fbf
  Author: Elvis Wang <elvis.wang at sifive.com>
  Date:   2025-02-25 (Tue, 25 Feb 2025)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/X86/cost-model.ll

  Log Message:
  -----------
  [LV][VPlan] Prevent calculate cost for skiped instructions in precomputeCosts(). (#127966)

Skip calculating instruction costs for exit conditions in
precomputeCosts() when it should be skipped.

Reported from:
https://github.com/llvm/llvm-project/issues/115744#issuecomment-2670479463
Godbolt for reduced test cases: https://godbolt.org/z/fr4YMeqcv



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