[llvm] Add new llvm.cbrt intrinsic (PR #178396)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 28 08:04:58 PST 2026
arsenm wrote:
> I am happy to explore alternative approaches to enable better vectorisation of 'pow(x, 1/3)', but if there existed a cbrt builtin in clang that mapped directly to the intrinsic would that be more acceptable?
Having the builtin or not doesn't change anything. The intrinsic needs to have a lowering path that always works. If you can use a libcall, you could have started with the libcall in the first place. The intrinsic is adding a new burden on the backend
https://github.com/llvm/llvm-project/pull/178396
More information about the llvm-commits
mailing list