[llvm] [X86] Narrow BT/BTC/BTR/BTS compare + RMW patterns on very large integers (PR #165540)

Phoebe Wang via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 29 20:46:25 PDT 2025


================
@@ -56516,6 +56594,37 @@ static SDValue combineSetCC(SDNode *N, SelectionDAG &DAG,
       if (SDValue AndN = MatchAndCmpEq(RHS, LHS))
         return DAG.getSetCC(DL, VT, AndN, DAG.getConstant(0, DL, OpVT), CC);
 
+      // If we're performing a bit test on a larger than legal type, attempt
----------------
phoebewang wrote:

Is it better to split to a different patch given the currect large effects in the tests?

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


More information about the llvm-commits mailing list