[all-commits] [llvm/llvm-project] 5d41c2: [Inliner] Fix bug where attributes are propagated ...
goldsteinn via All-commits
all-commits at lists.llvm.org
Mon Sep 23 23:34:25 PDT 2024
Branch: refs/heads/release/19.x
Home: https://github.com/llvm/llvm-project
Commit: 5d41c20edb2210743cc6c721b6274b7ada1a4cac
https://github.com/llvm/llvm-project/commit/5d41c20edb2210743cc6c721b6274b7ada1a4cac
Author: goldsteinn <35538541+goldsteinn at users.noreply.github.com>
Date: 2024-09-24 (Tue, 24 Sep 2024)
Changed paths:
M llvm/lib/Transforms/Utils/InlineFunction.cpp
M llvm/test/Transforms/Inline/access-attributes-prop.ll
M llvm/test/Transforms/Inline/ret_attr_align_and_noundef.ll
Log Message:
-----------
[Inliner] Fix bug where attributes are propagated incorrectly (#109347)
- **[Inliner] Add tests for incorrect propagation of return attrs; NFC**
- **[Inliner] Fix bug where attributes are propagated incorrectly**
The bug stems from the fact that we assume the new (inlined) callsite
is calling the same function as the original (callee) callsite. While
this is typically the case, since `VMap` simplifies the new
instructions, callee intrinsics callsites can end up not corresponding
with the same function.
This can lead to buggy propagation.
(cherry picked from commit a9352a0d31862c15146ca863bde165498e9a80e8)
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