================ @@ -1884,7 +1884,10 @@ bool AtomicExpandImpl::expandAtomicOpToLibcall( IRBuilder<> Builder(I); IRBuilder<> AllocaBuilder(&I->getFunction()->getEntryBlock().front()); - bool UseSizedLibcall = canUseSizedAtomicCall(Size, Alignment, DL); + const bool IsAtomic = + isa<LoadInst>(I) ? cast<LoadInst>(I)->isAtomic() : false; + const bool UseSizedLibcall = !(I->getType()->isVectorTy() && IsAtomic) && ---------------- arsenm wrote:
This shouldn't need to consider whether it's atomic or the type. The sized call should work fine. Some casts may be necessary https://github.com/llvm/llvm-project/pull/120716 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits