[all-commits] [llvm/llvm-project] cf7899: [NFC][LoopVectorizer] Remove VF.isScalable() asser...

CarolineConcatto via All-commits all-commits at lists.llvm.org
Tue Jul 20 07:57:12 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cf78995c4a1a608875a5ecf666067a9afb3e1274
      https://github.com/llvm/llvm-project/commit/cf78995c4a1a608875a5ecf666067a9afb3e1274
  Author: Caroline Concatto <caroline.concatto at arm.com>
  Date:   2021-07-20 (Tue, 20 Jul 2021)

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

  Log Message:
  -----------
  [NFC][LoopVectorizer] Remove VF.isScalable() assertion from collectInstsToScalarize and getInstructionCost

This patch removes the assertion when VF is scalable and replaces
getKnownMinValue() by getFixedValue(),  so it still guards the code against
scalable vector types.
The assertions were used to guarantee that getknownMinValue were not used for
scalable vectors.

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




More information about the All-commits mailing list