[llvm] [SDag][ARM][RISCV] Allow lowering CTPOP into a libcall (PR #101786)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 4 20:47:39 PDT 2024


topperc wrote:

> For what it's worth, not everything links against the compiler runtime, such as the Linux kernel. This change breaks building the kernel for RISC-V, as noticed by some CI infrastructure that built with the original change (#99752):
> 
> 
> 
> ```
> 
> ERROR: modpost: "__popcountdi2" [fs/ext4/ext4.ko] undefined!
> 
> ```
> 
> 
> 
> https://lore.kernel.org/all/?q=__popcountdi2

What about x86 CPUs that don't have POPCNT?

https://github.com/llvm/llvm-project/pull/101786


More information about the llvm-commits mailing list