Index: lib/Transforms/Vectorize/LoopVectorize.cpp =================================================================== --- lib/Transforms/Vectorize/LoopVectorize.cpp +++ lib/Transforms/Vectorize/LoopVectorize.cpp @@ -3048,8 +3048,13 @@ // Handle Stores: if (SI) { - assert(!Legal->isUniform(SI->getPointerOperand()) && - "We do not allow storing to uniform addresses"); + // TODO + // Quick workaround for PR36311 by commenting out the assert for which + // Legality already ensured will never trigger. Real fix is to avoid + // recomputing isUniform() here. Eventually, we should support some form + // of stores to uniform addresses. + // assert(!Legal->isUniform(SI->getPointerOperand()) && + // "We do not allow storing to uniform addresses"); setDebugLocFromInst(Builder, SI); for (unsigned Part = 0; Part < UF; ++Part) {