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

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 8 06:17:31 PST 2024


================
@@ -4618,6 +4673,9 @@ static Value *simplifySelectWithICmpCond(Value *CondVal, Value *TrueVal,
     }
   }
 
+  if (Value *V = simplifySelectBitTestSpec(CmpLHS, CmpRHS, TrueVal, FalseVal))
+    return V;
+
----------------
dtcxzyw wrote:

Please follow @goldsteinn's comment to show test changes in the second commit.


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


More information about the llvm-commits mailing list