[llvm] [DAG] Reducing instructions by better legalization handling of AVGFLOORU for i128 data types (PR #99913)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 23 02:45:32 PDT 2024


================
@@ -9318,7 +9318,8 @@ SDValue TargetLowering::expandAVG(SDNode *N, SelectionDAG &DAG) const {
   unsigned ExtOpc = IsSigned ? ISD::SIGN_EXTEND : ISD::ZERO_EXTEND;
   assert((Opc == ISD::AVGFLOORS || Opc == ISD::AVGCEILS ||
           Opc == ISD::AVGFLOORU || Opc == ISD::AVGCEILU) &&
-         "Unknown AVG node");
+         "Unknown AVG node"); 
----------------
RKSimon wrote:

still there - make sure to clang-format the function

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


More information about the llvm-commits mailing list