[all-commits] [llvm/llvm-project] 8c85f3: [SLP] Simplify extendSchedulingRegion

Philip Reames via All-commits all-commits at lists.llvm.org
Wed Feb 23 11:23:52 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8c85f3a0523070ef656e30e368df0a679c1400cd
      https://github.com/llvm/llvm-project/commit/8c85f3a0523070ef656e30e368df0a679c1400cd
  Author: Philip Reames <listmail at philipreames.com>
  Date:   2022-02-23 (Wed, 23 Feb 2022)

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

  Log Message:
  -----------
  [SLP] Simplify extendSchedulingRegion

This change uses instruction's comesBefore method to simplify the code significantly. There's little compile time concern here because getSpillCost already calls comesBefore on every basic block which contains a vectorization candidate. The only additional times we'll build basic block ordering is when we can't schedule a vector candidate anywhere in the containing block.

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




More information about the All-commits mailing list