diff options
| author | Jan Górski <jan.a.gorski@wp.pl> | 2025-04-28 17:35:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-28 08:35:51 -0700 |
| commit | d7e631c7cd6d9c13b9519991ec6becf08bc6b8aa (patch) | |
| tree | 650c9aeb39f975a0d2a3fabf95ab68f241e81397 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | a6f4a54891979c7c6d3c9e01598827da8b413f4f (diff) | |
[RISCV] Remove `AND` mask generated by `( zext ( atomic_load ) )` by replacing the load with `zextload` for orderings not stronger then monotonic. (#136502)
Extends changes from
[ff687af](https://github.com/llvm/llvm-project/commit/ff687af04f5b0e85305250587b524cb0b3849aa0).
Fixes https://github.com/llvm/llvm-project/issues/131476.
This patch adds a DAG combine to replace an `AND` of an `ATOMIC_LOAD`
with a full-bit mask (e.g. `0xFF`, `0xFFFF`, etc.) which is generated as
a result of `(zext (atomic_load))`, by a zero-extended load, provided
the atomic operation is monotonic or weaker.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
