[llvm] [AArch64] Add vector expansion support for ISD::FCBRT when using ArmPL (PR #183750)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 3 01:37:13 PST 2026
================
@@ -19358,7 +19361,10 @@ SDValue DAGCombiner::visitFPOW(SDNode *N) {
// Do not create a cbrt() libcall if the target does not have it, and do not
// turn a pow that has lowering support into a cbrt() libcall.
- if (!DAG.getLibInfo().has(LibFunc_cbrt) ||
+ RTLIB::Libcall LC = RTLIB::getCBRT(VT);
+ bool HasLibCall =
+ DAG.getTargetLoweringInfo().getLibcallImpl(LC) != RTLIB::Unsupported;
----------------
david-arm wrote:
👍 I've done it the same way as `isDivRemLibcallAvailable`.
https://github.com/llvm/llvm-project/pull/183750
More information about the llvm-commits
mailing list