[all-commits] [llvm/llvm-project] 0b36d4: [AArch64] Add vector expansion support for ISD::FC...

David Sherwood via All-commits all-commits at lists.llvm.org
Tue Mar 3 02:39:43 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0b36d4265e301699aef184e0405da35e4c2461e5
      https://github.com/llvm/llvm-project/commit/0b36d4265e301699aef184e0405da35e4c2461e5
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2026-03-03 (Tue, 03 Mar 2026)

  Changed paths:
    M llvm/include/llvm/CodeGen/RuntimeLibcallUtil.h
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
    M llvm/lib/CodeGen/TargetLoweringBase.cpp
    M llvm/lib/IR/RuntimeLibcalls.cpp
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/test/CodeGen/AArch64/veclib-llvm.pow.ll
    M llvm/test/CodeGen/ARM/pow.ll
    M llvm/test/Transforms/Util/DeclareRuntimeLibcalls/armpl.ll

  Log Message:
  -----------
  [AArch64] Add vector expansion support for ISD::FCBRT when using ArmPL (#183750)

This patch teaches the backend how to lower the FCBRT DAG node to the
vector math library function when using ArmPL. This is similar to what
we already do for llvm.pow/FPOW, however the only way to expose this is
via a DAG combine that converts

  FPOW(<2 x double> %x, <2 x double> <double 1.0/3.0, double 1.0/3.0>)

into

  FCBRT(<2 x double> %x)

when the appropriate fast math flags are present on the node. I've
updated the DAG combine to handle vector types and only perform the
transformation if there exists a vector library variant of cbrt.



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