[all-commits] [llvm/llvm-project] f98160: [CIR] Give up when we hit a global-view in dense-e...

Erich Keane via All-commits all-commits at lists.llvm.org
Fri Sep 18 08:13:38 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f98160d33212cb3dcfa123fcc1fbf1563d90dd81
      https://github.com/llvm/llvm-project/commit/f98160d33212cb3dcfa123fcc1fbf1563d90dd81
  Author: Erich Keane <ekeane at nvidia.com>
  Date:   2026-09-18 (Fri, 18 Sep 2026)

  Changed paths:
    M clang/lib/CIR/Lowering/LoweringHelpers.cpp
    M clang/test/CIR/CodeGen/global-address-to-int.c
    M clang/test/CIR/Lowering/const-array-bulk-lowering-fallbacks.cir

  Log Message:
  -----------
  [CIR] Give up when we hit a global-view in dense-element-attr lowering (#224379)

A ptr-to-int conversion can't be converted to an APInt/APFloat, so this
ends up not being able to produce a valid dense element attr. This patch
makes us 'fall back' to the insert-value version of any potential
dense-elements lowering if there is a global view as one of the values.



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