[all-commits] [llvm/llvm-project] fe6e17: [VPlan] Don't build recipes for unconditional swit...

Luke Lau via All-commits all-commits at lists.llvm.org
Mon Sep 8 02:02:05 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fe6e17840159f7ae9785d8506ff2987a2df7ab08
      https://github.com/llvm/llvm-project/commit/fe6e17840159f7ae9785d8506ff2987a2df7ab08
  Author: Luke Lau <luke at igalia.com>
  Date:   2025-09-08 (Mon, 08 Sep 2025)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp
    M llvm/test/Transforms/LoopVectorize/predicate-switch.ll

  Log Message:
  -----------
  [VPlan] Don't build recipes for unconditional switches (#157323)

In #157322 we crash because we try to infer a type for a VPReplicate
switch recipe.

My understanding was that these switches should be removed by
VPlanPredicator, but this switch survived through it because it was
unconditional, i.e. had no cases other than the default case.

This fixes #157322 by not emitting any recipes for unconditional
switches to begin with, similar to how we treat unconditional branches.



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