From 3f811b26efd017b43905005b3fedf0e2c9d83d6f Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 21 Dec 2022 00:26:27 -0800 Subject: [PATCH] [DAGCombine] Fix mistake in a comment. NFC --- llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 3b4cb13..390ee7e 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -24705,7 +24705,7 @@ SDValue DAGCombiner::SimplifySelectCC(const SDLoc &DL, SDValue N0, SDValue N1, if (SDValue V = foldSelectCCToShiftAnd(DL, N0, N1, N2, N3, CC)) return V; - // fold (select_cc seteq (and x, y), 0, 0, A) -> (and (shr (shl x)) A) + // fold (select_cc seteq (and x, y), 0, 0, A) -> (and (sra (shl x)) A) // where y is has a single bit set. // A plaintext description would be, we can turn the SELECT_CC into an AND // when the condition can be materialized as an all-ones register. Any -- 2.7.4