[llvm] [VPlan] Recognise single-scalar VPInstructions in isUniformAcrossVFsAndUFs (PR #194674)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 29 12:55:25 PDT 2026


================
@@ -429,7 +429,8 @@ bool vputils::isUniformAcrossVFsAndUFs(VPValue *V) {
                all_of(R->operands(), isUniformAcrossVFsAndUFs);
       })
       .Case([](const VPInstruction *VPI) {
-        return preservesUniformity(VPI->getOpcode()) &&
+        return (VPI->isSingleScalar() || VPI->isVectorToScalar() ||
----------------
fhahn wrote:

would be good to add a test for a isVectorToScalar, and also for isSingleScalar with operands

https://github.com/llvm/llvm-project/pull/194674


More information about the llvm-commits mailing list