diff options
author | goldsteinn <35538541+goldsteinn@users.noreply.github.com> | 2024-09-20 19:57:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-20 19:57:35 -0500 |
commit | a9352a0d31862c15146ca863bde165498e9a80e8 (patch) | |
tree | 02cedaf8ab58445c6d81af48bd82d02b0c1d86e3 /llvm/unittests/CodeGen/MachineBasicBlockTest.cpp | |
parent | 0a84f12208a9b66b07df67062b5f7907cab308e9 (diff) | |
download | llvm-a9352a0d31862c15146ca863bde165498e9a80e8.zip llvm-a9352a0d31862c15146ca863bde165498e9a80e8.tar.gz llvm-a9352a0d31862c15146ca863bde165498e9a80e8.tar.bz2 |
[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.
Diffstat (limited to 'llvm/unittests/CodeGen/MachineBasicBlockTest.cpp')
0 files changed, 0 insertions, 0 deletions