[all-commits] [llvm/llvm-project] a75089: [VPlan][LV] Fix invalid truncation in VPScalarIVSt...

Maryam Moghadas via All-commits all-commits at lists.llvm.org
Tue May 6 09:48:43 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a750893fea29f32e9bab2cd5176eec34e63b0898
      https://github.com/llvm/llvm-project/commit/a750893fea29f32e9bab2cd5176eec34e63b0898
  Author: Maryam Moghadas <maryammo at ca.ibm.com>
  Date:   2025-05-06 (Tue, 06 May 2025)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
    A llvm/test/Transforms/LoopVectorize/PowerPC/vplan-scalarivsext-crash.ll

  Log Message:
  -----------
  [VPlan][LV] Fix invalid truncation in VPScalarIVStepsRecipe (#137832)

Replace CreateTrunc with CreateSExtOrTrunc in VPScalarIVStepsRecipe to
safely handle type conversion. This prevents assertion failures from
invalid truncation when StartIdx0 has a smaller integer type than
IntStepTy. The assertion was introduced by commit 783a846.
Fixes https://github.com/llvm/llvm-project/issues/137185



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