[all-commits] [llvm/llvm-project] aa57c6: [AMDGPU] Preserve call-site attributes rebuilding ...
gretay-amd via All-commits
all-commits at lists.llvm.org
Fri Jun 5 03:42:36 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: aa57c6af07b9086fd7a9b9b72df22f99dd30ee64
https://github.com/llvm/llvm-project/commit/aa57c6af07b9086fd7a9b9b72df22f99dd30ee64
Author: gretay-amd <Greta.Yorsh at amd.com>
Date: 2026-06-05 (Fri, 05 Jun 2026)
Changed paths:
M llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
M llvm/test/Transforms/InstCombine/AMDGPU/amdgcn-demanded-vector-elts.ll
Log Message:
-----------
[AMDGPU] Preserve call-site attributes rebuilding an intrinsic (#201549)
This PR copies the original call-site attributes onto the new call.
`AMDGPUInstCombineIntrinsic` uses `IC.Builder.CreateIntrinsic` to
rebuild intrinsic calls. `CreateIntrinsic` only inherits attributes from
the intrinsic declaration, and any call-site only attributes are
silently dropped.
The change is needed in both `modifyIntrinsicCall` simplifications and
`simplifyAMDGCNMemoryIntrinsicDemanded`. The new test exercises both
transformations firing in sequence on the same `image.sample` call. Two
commits: the first adds the test that drops the attribute and then the
second commit fixes the bug and the test.
This fix was originally introduced in the context of
waterfall intrinsics #192409, but the issue and the fix are independent.
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