[all-commits] [llvm/llvm-project] de63e4: [Verifier] Reject elementwise atomicrmw with sub-b...
Yonah Goldberg via All-commits
all-commits at lists.llvm.org
Tue Aug 4 08:28:02 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: de63e4f3538ade12b5264e6e3f4682201ada16e8
https://github.com/llvm/llvm-project/commit/de63e4f3538ade12b5264e6e3f4682201ada16e8
Author: Yonah Goldberg <ygoldberg at nvidia.com>
Date: 2026-08-04 (Tue, 04 Aug 2026)
Changed paths:
M llvm/lib/IR/Verifier.cpp
M llvm/test/Assembler/invalid-atomicrmw-elementwise.ll
Log Message:
-----------
[Verifier] Reject elementwise atomicrmw with sub-byte element type (#213753)
In https://github.com/llvm/llvm-project/pull/208510/ I accidentally
introduced a bug where I allowed sub-byte element types with atomicrmw
elementwise (i.e. `<8 x i1>`).
The LangRef states:
```
The access type
must then be a fixed vector type whose total bit width is a power of two and
whose element type is supported by the corresponding scalar atomic instruction.
```
The second part of this sentence rejects sub-byte element types.
The fix is that elementwise atomics need to additionally call
`checkAtomicMemAccessSize` on the vector element type (they already call
it on the whole vector).
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