[all-commits] [llvm/llvm-project] 796927: [LV] Use VPValue for SCEV expansion in fixupIVUsers.

Florian Hahn via All-commits all-commits at lists.llvm.org
Thu May 4 01:26:29 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 79692750d250d2e155aaa2b078aeb0451f005cb6
      https://github.com/llvm/llvm-project/commit/79692750d250d2e155aaa2b078aeb0451f005cb6
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2023-05-04 (Thu, 04 May 2023)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/lib/Transforms/Vectorize/VPlan.cpp
    M llvm/lib/Transforms/Vectorize/VPlan.h
    M llvm/test/Transforms/LoopVectorize/pr58811-scev-expansion.ll

  Log Message:
  -----------
  [LV] Use VPValue for SCEV expansion in fixupIVUsers.

The step is already expanded in the VPlan. Use this expansion instead.
This is a step towards modeling fixing up IV users in VPlan.

 It also fixes a crash casued by SCEV-expanding the Step expression in
fixupIVUsers, where the IR is in an incomplete state

Reviewed By: Ayal

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




More information about the All-commits mailing list