[llvm] [ValueTracking] Conservative NoSync check prevents vectorization (PR #199002)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sun May 24 12:21:13 PDT 2026
================
@@ -708,18 +708,23 @@ bool llvm::willNotFreeBetween(const Instruction *Assume,
for (const auto &[Idx, I] : enumerate(Range)) {
if (Idx > MaxInstrsToCheckForFree)
return false;
- if (const auto *CB = dyn_cast<CallBase>(&I))
- if (!CB->hasFnAttr(Attribute::NoFree))
+ if (I.isVolatile())
----------------
nikic wrote:
We clarified that volatile is not synchronizing in https://github.com/llvm/llvm-project/pull/194391.
https://github.com/llvm/llvm-project/pull/199002
More information about the llvm-commits
mailing list