[llvm] [DAGCombiner] Use generalized pattern matcher in foldBoolSelectToLogic (PR #79101)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 25 09:36:16 PST 2024
================
@@ -12138,6 +12144,13 @@ SDValue DAGCombiner::foldVSelectOfConstants(SDNode *N) {
return SDValue();
}
+SDValue DAGCombiner::visitVP_SELECT(SDNode *N) {
+ if (SDValue V = foldBoolSelectToLogic<EmptyMatchContext>(N, DAG))
----------------
topperc wrote:
Shouldn't this be `VPMatchContext`?
https://github.com/llvm/llvm-project/pull/79101
More information about the llvm-commits
mailing list