[llvm] [VPlan] Don't rely on region check in isUniformAfterVectorization. (PR #137883)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 30 06:53:32 PDT 2025
================
@@ -39,18 +39,37 @@ const SCEV *getSCEVExprForVPValue(VPValue *V, ScalarEvolution &SE);
/// Returns true if \p VPV is uniform after vectorization.
inline bool isUniformAfterVectorization(const VPValue *VPV) {
+ auto IsKnownUniformOpcode = [](auto *R) -> bool {
----------------
ayalz wrote:
Pass R's opcode instead of R?
Can the lambda's name be more accurate, say `PreservesUniformity/SingleScalar(opcode)`? I.e., given uniform/single-scalar operands produces a uniform/single-scalar result.
https://github.com/llvm/llvm-project/pull/137883
More information about the llvm-commits
mailing list