[llvm] [VPlan] Simplify (X && Y) || (X && !Y) -> X. (PR #89386)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 25 14:01:09 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.
----------------
fhahn wrote:
Updated to use A, B, C, D. The intention was to avoid A == C && B == D in the description, but it is probably more confusing.
https://github.com/llvm/llvm-project/pull/89386
More information about the llvm-commits
mailing list