[all-commits] [llvm/llvm-project] c50415: [AArch64] Do not promote scalable constants to glo...
Momchil Velikov via All-commits
all-commits at lists.llvm.org
Mon Jul 7 01:17:52 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c50415bb82a740426a5559ff7f1e350f394e9fcf
https://github.com/llvm/llvm-project/commit/c50415bb82a740426a5559ff7f1e350f394e9fcf
Author: Momchil Velikov <momchil.velikov at arm.com>
Date: 2025-07-07 (Mon, 07 Jul 2025)
Changed paths:
M llvm/lib/Target/AArch64/AArch64PromoteConstant.cpp
A llvm/test/CodeGen/AArch64/no-promote-scalabale-const-to-global.ll
Log Message:
-----------
[AArch64] Do not promote scalable constants to global variables (#146926)
Following
https://github.com/llvm/llvm-project/commit/878d3594ed74cd1153bc5cba2cb7a449702cdf34
IREE/MLIR started generating values like
[<vscale x 4 x float> zeroinitializer, <vscale x 4 x float> poison]
which then LLVM promoted to global variables in `AArch64PromoteConstant` pass.
This patch prevents it by explicitly checking the type of the promotion candidate.
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