[llvm] VPlan: use worklist in simplifyRecipes (PR #93998)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 21 03:55:04 PDT 2024
================
@@ -1046,23 +1048,73 @@ static void simplifyRecipe(VPRecipeBase &R, VPTypeAnalysis &TypeInfo) {
assert(TypeInfo.inferScalarType(VPV) == TypeInfo2.inferScalarType(VPV));
}
#endif
+ if (VPC)
+ return {VPC};
+ return {};
----------------
fhahn wrote:
```suggestion
return VPC ? {VPC} : {}
```
https://github.com/llvm/llvm-project/pull/93998
More information about the llvm-commits
mailing list