[llvm] [DAG] Replace llvm::isNeutralConstant with SelectionDAG::isNeutralElement (PR #195827)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue May 5 04:02:26 PDT 2026


================
@@ -2277,6 +2277,19 @@ class SelectionDAG {
     return computeOverflowForMul(IsSigned, N0, N1) == OFK_Never;
   }
 
+  /// Returns true if \p V is a neutral element of Opc with Flags.
----------------
arsenm wrote:

Yes 

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


More information about the llvm-commits mailing list