[all-commits] [llvm/llvm-project] ece39f: [CIR]Add RecordType to our dense-array optimizatio...

Erich Keane via All-commits all-commits at lists.llvm.org
Mon Aug 3 14:22:37 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ece39fd91f57e943a50c3d67873b75b90c933a7d
      https://github.com/llvm/llvm-project/commit/ece39fd91f57e943a50c3d67873b75b90c933a7d
  Author: Erich Keane <ekeane at nvidia.com>
  Date:   2026-08-03 (Mon, 03 Aug 2026)

  Changed paths:
    M clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
    M clang/lib/CIR/Lowering/LoweringHelpers.cpp
    M clang/test/CIR/CodeGen/array.cpp
    M clang/test/CIR/Lowering/const-array-bulk-lowering-fallbacks.cir

  Log Message:
  -----------
  [CIR]Add RecordType to our dense-array optimization in lowering (#213725)

This is an issue in AMDGPUAsmParser.cpp self-build, we have a lot of
record elements (~360k+!) in an array that causes us to have this TU be
near-never-ending(hour+). Classic codegen compiles this sub-minute on my
machine. With this patch, we are only about a 30% increase in time.

Note: Claude wrote much of the tests after I got through every exception
I could think of. I think this covers everything, and I hope there is no
missing coverage.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list