[llvm] [InstSimplify] Simplify select if it combinated `and/or/xor` (PR #73362)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 10 01:17:09 PST 2024


================
@@ -4600,6 +4651,9 @@ static Value *simplifySelectWithICmpEq(Value *CmpLHS, Value *CmpRHS,
                              /* DropFlags */ nullptr, MaxRecurse) == FalseVal)
     return FalseVal;
 
+  if (simplifySpecificBitOp(CmpLHS, CmpRHS, TrueVal, FalseVal))
+    return FalseVal;
----------------
ParkHanbum wrote:

got it!

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


More information about the llvm-commits mailing list