[llvm] [DAGCombiner] Add combine avg from shifts (PR #113909)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 28 07:45:19 PDT 2024


================
@@ -11393,6 +11413,56 @@ static SDValue combineMinNumMaxNumImpl(const SDLoc &DL, EVT VT, SDValue LHS,
   }
 }
 
+SDValue DAGCombiner::combineAVG(SDNode *N) {
+  const auto Opcode = N->getOpcode();
----------------
RKSimon wrote:

(style) Don't use auto

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


More information about the llvm-commits mailing list