[llvm] [SROA] Prevent load atomic vector from being generated (PR #112432)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 20 18:54:27 PDT 2024
================
@@ -252,7 +252,8 @@ class LoadInst : public UnaryInstruction {
/// Returns false if this type would be invalid in the
/// creation of a load atomic instruction.
- static bool isValidAtomicTy(Type *Ty);
+ static bool isValidAtomicTy(Type *Ty, const DataLayout *DL = nullptr,
----------------
jofrn wrote:
Then we need to omit it entirely because otherwise we will be checking the type size of the alloca, which we want to avoid if to optimize `basictest.ll`.
https://github.com/llvm/llvm-project/pull/112432
More information about the llvm-commits
mailing list