[all-commits] [llvm/llvm-project] dfac52: [ARM] Fix vector saddsat costs.

David Green via All-commits all-commits at lists.llvm.org
Thu Jan 21 07:36:11 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: dfac521da1b90db6832a0d357f67cb819ea8687f
      https://github.com/llvm/llvm-project/commit/dfac521da1b90db6832a0d357f67cb819ea8687f
  Author: David Green <david.green at arm.com>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

  Changed paths:
    M llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
    A llvm/test/Transforms/LoopVectorize/ARM/mve-saddsatcost.ll

  Log Message:
  -----------
  [ARM] Fix vector saddsat costs.

It turns out the vectorizer calls the getIntrinsicInstrCost functions
with a scalar return type and vector VF. This updates the costmodel to
handle that, still producing the correct vector costs.

A vectorizer test is added to show it vectorizing at the correct factor
again.




More information about the All-commits mailing list