[llvm] [VPlan] Simplify (X && Y) || (X && !Y) -> X. (PR #89386)
via llvm-commits
llvm-commits at lists.llvm.org
Sun May 5 13:25:39 PDT 2024
================
@@ -940,6 +940,18 @@ static void simplifyRecipe(VPRecipeBase &R, VPTypeAnalysis &TypeInfo) {
#endif
}
+ VPValue *B;
+ VPValue *C;
+ VPValue *D;
+ // Simplify (X && Y) || (X && !Y) -> X.
----------------
ayalz wrote:
How about keeping the description (X && Y) || (X && !Y) -> X and use X, Y, X1, Y1 instead of A, B, C, D in the code, respectively?
https://github.com/llvm/llvm-project/pull/89386
More information about the llvm-commits
mailing list