[all-commits] [llvm/llvm-project] b0f2bf: [VPlan] Use correct non-FMF constructor in VPInstr...

Luke Lau via All-commits all-commits at lists.llvm.org
Tue Apr 29 05:35:40 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b0f2bfc7e45427b2df8d45f3cd40c833d1f3bab6
      https://github.com/llvm/llvm-project/commit/b0f2bfc7e45427b2df8d45f3cd40c833d1f3bab6
  Author: Luke Lau <luke at igalia.com>
  Date:   2025-04-29 (Tue, 29 Apr 2025)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h

  Log Message:
  -----------
  [VPlan] Use correct non-FMF constructor in VPInstructionWithType createNaryOp (#137632)

Currently if we try to create a VPInstructionWithType without a FMF via
VPBuilder::createNaryOp we will use the constructor that asserts
`assert(isFPMathOp() && "this op can't take fast-math flags");`.

This fixes it by checking if FMFs have a value, similar to the other
createNaryOp overloads.

This is needed by #129508



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