[llvm] [GlobalISel] Reserve IRTranslator value map and virtual register storage (NFC) (PR #222311)

Alexis Engelke via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 9 06:14:02 PDT 2026


https://github.com/aengelke approved this pull request.

LGTM, thanks for checking.

(Tangentially related, I've wanted to add an auxiliary field to Instruction to maps like VMap for a long time. I prototyped this for [FunctionLoweringInfo's ValueMap](https://github.com/llvm/llvm-project/commit/f4cac5e293680dddb36476402e12cd4316f588a6) (primarily FastISel) ([c-t-t stage2-O0g -0.25%](https://llvm-compile-time-tracker.com/compare.php?from=0f9d9a8b08722aad4f333d63cfcac920fb409141&to=f4cac5e293680dddb36476402e12cd4316f588a6&stat=instructions:u)), but never got around to port other transformations (InstCombine, GVN, ...) to use that field, which I think would be required to justify an RFC that increases sizeof(Instruction) and the associated max-rss increase (the padding bytes I originally intended to use are gone now).)

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


More information about the llvm-commits mailing list