[all-commits] [llvm/llvm-project] 987746: [Verifier] Clean up load atomic elementwise mem ac...

Yonah Goldberg via All-commits all-commits at lists.llvm.org
Tue Aug 4 08:28:33 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 98774647cfd7dc067e9fda9109a3f7dc1c2e91c3
      https://github.com/llvm/llvm-project/commit/98774647cfd7dc067e9fda9109a3f7dc1c2e91c3
  Author: Yonah Goldberg <ygoldberg at nvidia.com>
  Date:   2026-08-04 (Tue, 04 Aug 2026)

  Changed paths:
    M llvm/lib/IR/Verifier.cpp

  Log Message:
  -----------
  [Verifier] Clean up load atomic elementwise mem access sizes check (NFC) (#213864)

I refactored the `load atomic elementwise` check to have the same
cleaner pattern as `atomicrmw elementwise` and remove the `ScalarTy`
intermediate.

The previous code had this segment:

```
      if (VecTy) {
        checkAtomicMemAccessSize(ScalarTy, &LI);
        ScalarTy = VecTy->getElementType();
      }
```

Which is confusing because it's checking the atomic access size on the
whole vector and then assigning `ScalarTy` to the element type so that
the second check does the check on the element type. It's cleaner to
reverse this and have the first check operate on the element type so
that the second check always checks the entire type.



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