shiltian wrote: > Should we change the expansion threshold in the PreISelIntrinsicLowering? Not really in this patch. With this patch those intrinsics will be lowered before instruction selection. https://github.com/llvm/llvm-project/pull/87632