[llvm] [CodeGen][PreISelIntrinsicLowering] Add VP-based lowering for memcpy/memmove/memset (PR #165585)

David Del Río via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 27 09:18:23 PST 2026


dadra-oc wrote:

I had the chance to get a BananaPi on my hands to run some experiments. This is the results I get from running SPEC2017 on it:

|                      | Default   |          | VP-based intrinsic expansion |          |  
| ------------- | ---------- | ------ | ------------------------------- | ------ |
test_name | exec_time | size | exec_time | size
500.perlbench_r.test | 151.1632 | 3004232 | 147.3332 | 3012424
502.gcc_r.test | 376.2095 | 9734520 | 373.8835 | 9742712
505.mcf_r.test | 566.394 | 891568 | 566.893 | 891568
507.cactuBSSN_r.test | 872.024 | 4522872 | 833.2062 | 4526920
508.namd_r.test | 216.8401 | 564368 | 212.9919 | 572416
510.parest_r.test | 317.3262 | 12870496 | 319.5676 | 12858104
511.povray_r.test | 35.202 | 1129368 | 35.3327 | 1129264
519.lbm_r.test | 199.7712 | 881232 | 198.4729 | 881232
520.omnetpp_r.test | 538.5126 | 2697768 | 536.6124 | 2701760
523.xalancbmk_r.test | 284.9703 | 6996792 | 267.2621 | 7013032
525.x264_r.test | 119.6766 | 1452544 | 119.3429 | 1452544
526.blender_r.test | 863.7959 | 21209432 | 861.2548 | 21229856
531.deepsjeng_r.test | 283.9126 | 101120 | 282.0386 | 101072
538.imagick_r.test | 289.4859 | 2895144 | 288.7321 | 2895144
541.leela_r.test | 278.8331 | 187464 | 279.7496 | 187360
544.nab_r.test | 483.9055 | 1124568 | 475.6069 | 1124568
548.exchange2_r.test | 152.8596 | 1840712 | 152.8137 | 1840712
549.fotonik3d_r.test | 562.4461 | 2534336 | 580.4343 | 2534336
554.roms_r.test | 2521.5593 | 3991432 | 2579.3188 | 3991432
557.xz_r.test | 192.4964 | 939680 | 192.8806 | 939680
600.perlbench_s.test | 151.1878 | 3004232 | 148.6845 | 3012424
602.gcc_s.test | 376.299 | 9734520 | 373.9981 | 9742712
605.mcf_s.test | 566.8954 | 891568 | 579.9954 | 891568
607.cactuBSSN_s.test | 860.3738 | 4522872 | 795.9853 | 4526920
619.lbm_s.test | 1696.6888 | 881232 | 1675.3287 | 881232
620.omnetpp_s.test | 540.2298 | 2697768 | 537.9695 | 2701760
623.xalancbmk_s.test | 273.4511 | 6996792 | 275.5993 | 7013032
625.x264_s.test | 117.4533 | 1452544 | 118.7549 | 1452544
631.deepsjeng_s.test | 311.2839 | 101120 | 310.1352 | 101072
638.imagick_s.test | 287.8479 | 2895144 | 288.2362 | 2895144
641.leela_s.test | 279.9698 | 187464 | 280.3311 | 187360
644.nab_s.test | 480.6869 | 1124568 | 475.5815 | 1124568
648.exchange2_s.test | 152.73 | 1840712 | 152.8241 | 1840712
649.fotonik3d_s.test | 557.422 | 2534336 | 482.9657 | 2534336
654.roms_s.test | 2576.0629 | 3991432 | 2594.8982 | 3991432
657.xz_s.test | 190.6773 | 939680 | 191.4656 | 939680
996.specrand_fs.test | 0 | 748048 | 0.0032 | 748048
997.specrand_fr.test | 0 | 748048 | 0 | 748048
998.specrand_is.test | 0 | 748048 | 0 | 748048
999.specrand_ir.test | 0 | 748048 | 0 | 748048

<img width="1200" height="600" alt="plot_speedup" src="https://github.com/user-attachments/assets/49a1ec60-9bb4-4c17-bc2b-0713b7e22e30" />

I hope this can help @lukel97 

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


More information about the llvm-commits mailing list