[all-commits] [llvm/llvm-project] 7120f8: [NFC][LoopVectorize] Remove unnecessary VF.isScala...

david-arm via All-commits all-commits at lists.llvm.org
Thu Apr 15 01:41:24 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7120f89f7d8379c98fcf596da7c98cec04b89313
      https://github.com/llvm/llvm-project/commit/7120f89f7d8379c98fcf596da7c98cec04b89313
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2021-04-15 (Thu, 15 Apr 2021)

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

  Log Message:
  -----------
  [NFC][LoopVectorize] Remove unnecessary VF.isScalable asserts

There are a few places in LoopVectorize.cpp where we have been too
cautious in adding VF.isScalable() asserts and it can be confusing.
It also makes it more difficult to see the genuine places where
work needs doing to improve scalable vectorization support.

This patch changes getMemInstScalarizationCost to return an
invalid cost instead of firing an assert for scalable vectors. Also,
vectorizeInterleaveGroup had multiple asserts all for the same
thing. I have removed all but one assert near the start of the
function, and added a new assert that we aren't dealing with masks
for scalable vectors.

Differential Revision: https://reviews.llvm.org/D99727




More information about the All-commits mailing list