[flang-commits] [clang] [compiler-rt] [flang] [llvm] [clang-tools-extra] [VPlan] Replace VPRecipeOrVPValue with VP2VP recipe simplification. (PR #76090)

via flang-commits flang-commits at lists.llvm.org
Sun Jan 28 13:09:01 PST 2024


================
@@ -827,6 +827,16 @@ static unsigned getOpcodeForRecipe(VPRecipeBase &R) {
 
 /// Try to simplify recipe \p R.
 static void simplifyRecipe(VPRecipeBase &R, VPTypeAnalysis &TypeInfo) {
+  // Try to remove redundant blend recipes.
+  if (auto *Blend = dyn_cast<VPBlendRecipe>(&R)) {
----------------
ayalz wrote:

nit: may be worth defining and reusing `IncomingValue0 = Blend->getIncomingValue(0);`

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


More information about the flang-commits mailing list