diff options
| author | Quentin Colombet <quentin.colombet@gmail.com> | 2023-04-20 21:29:29 +0200 |
|---|---|---|
| committer | Quentin Colombet <quentin.colombet@gmail.com> | 2023-04-26 06:07:00 +0200 |
| commit | 68e1aef68e40452b6c176b25e67c13a0359c96ca (patch) | |
| tree | 770ec1c36d8297f393f8e4aca0a034dedeafc20b /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 1b7c6cc688071b08e206669a2340f8390f0adf7a (diff) | |
[MemRefToLLVM] Fix the lowering of memref.assume_alignment
`memref.assume_alignment` annotates the alignment of the source buffer
not the base pointer.
Put diffrently, prior to this patch `memref.assume_alignment` would lower
to `llvm.assume %buffer.base.isAligned(X)` whereas what we want is
`llvm.assume (%buffer.base + %buffer.offset).isAligned(X)`.
In other words, we were missing to include the offset in the expression
checked by the `llvm.assume`.
Differential Revision: https://reviews.llvm.org/D148930
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
