[all-commits] [llvm/llvm-project] 50d5d0: [LoopVectorize][NFC] Cache the result of getVScale...

David Sherwood via All-commits all-commits at lists.llvm.org
Mon Feb 3 01:49:48 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 50d5d06d383616b88a71512d58b0f5bf365d921b
      https://github.com/llvm/llvm-project/commit/50d5d06d383616b88a71512d58b0f5bf365d921b
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2025-02-03 (Mon, 03 Feb 2025)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

  Log Message:
  -----------
  [LoopVectorize][NFC] Cache the result of getVScaleForTuning (#124732)

We currently call getVScaleForTuning in many places, doing a
lot of work asking the same question with the same answer.
I've refactored the code to cache the value if the max
scalable VF != 0 and pull out the cached value from
LoopVectorizationCostModel.



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