Contributions to Rust and LLVM in 2025 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
dianqk
V2EX    Rust

Contributions to Rust and LLVM in 2025

  •  1
     
  •   dianqk 2025 年 12 月 23 日 868 次点击

    文末广告 :)

    2025

    2024

    I have much less spare time this year because I have a baby :p. And I'm looking for a sustainable way to contribute.

    I joined the Rust compiler team (in 2024! :3).

    LLVM: A performance regression in LLVM that affected Ajla and Python

    This regression has been discussed elsewhere; see lobste.rs/s/9paxz2/performance_python_3_14_tail_call.

    I introduced the regression due to a limit for compile time in llvm#78582. Finally, I learned a resolve from GCC, and then I fixed the regression in llvm#114990 and llvm#132536.

    Rust: Transforming “Clone” to “Copy”

    To me, the most interesting issue is rust#128081.

    The "Clone" method can be transformed to "Copy" in GVN. I have several PRs for this and am working on more.

    The first key PR (rust#128299) exposed variant miscompilations. Camille Gillot identified the root cause in rust#147844:

    We can reason with the value behind a reference because it is UB to directly assign to the underlying local while the reference is live. We allow creating new derefs, this means extending the liveness of references, so we are creating UB.

    Rust: Debuginfo in MIR Basic Blocks

    rust#129931 turns out that handling Debuginfo in MIR Basic Blocks is required. I implemented this in rust#142771.

    This left some stuff:

    Rust: 4 P-critical

    I caused 4 P-critical issues. :(

    The rust#124150 and rust#132353 are miscompilations in MIR opt. I'm investigating some translation validation tools, such as Miri, Alive2, and model checker, but I haven't made any progress. So far, I have only read Program Z3, and I have forgotten many things. Furthermore, I'm thinking about picking it up next year. :p

    Other

    While reviewing PRs can be exhausting, it's also a great learning opportunity. For instance, working through PRs like rust#142707, rust#143784, rust#136840, and rust#133832 taught me a great deal.

    I realize that the knowledge of the LLVM backend is essential to me, since more and more issues happened in the LLVM backend. I'm not sure how to tackle these issues, but I have begun studying LLVM Code Generation: A deep dive into compiler backend development.

    MIR optimizations are still important to me. I'd like to thank Camille Gillot for their help on MIR.

    I'm trying to immerse myself in English, and I have stopped using LLM for Chinese-to-English translation anymore. :p

    I'm also learning Japanese for fun. If you are interested in anime and manga, I recommend you read learnjapanese.moe.


    家里没地方了 :(,卖掉我的 7950X 主机:

    • CPU:AMD 7950X
    • 主板:华硕 TUF GAMING B650M-PLUS
    • 内存 2 条:金士顿 FURY 32G D5 6000
    • 水冷:华硕 ROG STRIX 飞龙二代 360
    • 硬盘:ZHITAI TiPlus7100 2TB
    • 硬盘:Samsung SSD 980 PRO 2TB
    • 显卡:AMD 撼讯 RX6600
    • 电源:先马 XP850W 白金
    • 机箱:乔思伯 松果 D31

    价格 11000 。

    3 条回复    2026-01-04 08:32:31 +08:00
    levelworm
        1
    levelworm  
       2025 年 12 月 23 日 via iPhone
    Kneel down before the big old!
    bytenoob
        2
    bytenoob  
       7 天前
    全职么?
    dianqk
        3
    dianqk  
    OP
       6 天前 via Android   1
    @bytenoob 不是,实际是不仅没钱,还要自己买机器构建和测试(测试复现多个平台的问题)。
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     2639 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 29ms UTC 10:33 PVG 18:33 LAX 02:33 JFK 05:33
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86