[all-commits] [llvm/llvm-project] c8d0e2: [VPlan] Preserve trunc nuw/nsw in VPRecipeWithIRFl...

Luke Lau via All-commits all-commits at lists.llvm.org
Tue Jul 15 00:34:35 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c8d0e247453af3c5c031ed210736f650e6be2289
      https://github.com/llvm/llvm-project/commit/c8d0e247453af3c5c031ed210736f650e6be2289
  Author: Luke Lau <luke at igalia.com>
  Date:   2025-07-15 (Tue, 15 Jul 2025)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlan.h
    M llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
    M llvm/test/Transforms/LoopVectorize/AArch64/conditional-branches-cost.ll
    M llvm/test/Transforms/LoopVectorize/ARM/mve-reg-pressure-vmla.ll
    M llvm/test/Transforms/PhaseOrdering/ARM/arm_mult_q15.ll

  Log Message:
  -----------
  [VPlan] Preserve trunc nuw/nsw in VPRecipeWithIRFlags (#144700)

This preserves the nuw/nsw flags on widened truncs by checking for
TruncInst in the VPIRFlags constructor

The motivation for this is to be able to fold away some redundant truncs
feeding into uitofps (or potentially narrow the inductions feeding them)



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