[llvm] Match fixed width ISD::AVGFLOORS + ISD::AVGCEILS patterns (PR #86222)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 22 03:22:58 PDT 2024


================
@@ -2872,6 +2906,10 @@ SDValue DAGCombiner::visitADD(SDNode *N) {
   // Try to match AVGFLOORU fixedwidth pattern
   if (SDValue V = combineFixedwidthToAVGFLOORU(N, DAG))
     return V;
+  
+  // Try to match AVGFLOORU fixedwidth pattern
+  if (SDValue V = combineFixedwidthToAVGFLOORS(N, DAG))
----------------
RKSimon wrote:

Merge this into combineFixedwidthToAVGFLOORU (rename to combineFixedwidthToAVGFLOOR)

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


More information about the llvm-commits mailing list