[llvm] [VPlan] Narrow VPWidenCastRecipe to scalar cast recipe. (PR #166514)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 6 00:53:55 PST 2025
================
@@ -171,6 +171,10 @@ bool vputils::isSingleScalar(const VPValue *VPV) {
return PreservesUniformity(WidenR->getOpcode()) &&
all_of(WidenR->operands(), isSingleScalar);
}
+ if (auto *CastR = dyn_cast<VPWidenCastRecipe>(VPV)) {
+ return PreservesUniformity(CastR->getOpcode()) &&
----------------
lukel97 wrote:
Copying over my review from #143552 , I think this PreservesUniformity call is always true, we can remove it
https://github.com/llvm/llvm-project/pull/166514
More information about the llvm-commits
mailing list