[all-commits] [llvm/llvm-project] 57a554: [SROA] Don't shrink volatile load past end

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Sep 20 05:12:48 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 57a554800b804a0d849858972822142e1f75d37f
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-09-20 (Wed, 20 Sep 2023)

  Changed paths:
    M llvm/lib/Transforms/Scalar/SROA.cpp
    M llvm/test/Transforms/SROA/basictest.ll

  Log Message:
  [SROA] Don't shrink volatile load past end

For volatile atomic, this may result in a verifier errors, if the
new alloca type is not legal for atomic accesses.

I've opted to disable this special case for volatile accesses in
general, as changing the size of the volatile access seems
dubious in any case.

Fixes https://github.com/llvm/llvm-project/issues/64721.

More information about the All-commits mailing list