[all-commits] [llvm/llvm-project] a67efd: [VPlan] Recognize shl by constant in getSCEVExprFo...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sun May 31 02:46:01 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a67efda258fa73c7b6b915fb31b8412b800a15e9
      https://github.com/llvm/llvm-project/commit/a67efda258fa73c7b6b915fb31b8412b800a15e9
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2026-05-31 (Sun, 31 May 2026)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlanUtils.cpp
    M llvm/test/Transforms/LoopVectorize/RISCV/masked_gather_scatter.ll

  Log Message:
  -----------
  [VPlan] Recognize shl by constant in getSCEVExprForVPValue. (#199359)

Treat `shl x, c` (with c < bitwidth) as `x * (1 << c)` so callers that
analyze GEP indices via SCEV can see through stride shifts written as
logical shifts.

PR: https://github.com/llvm/llvm-project/pull/199359



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list