[llvm] [DAG] Replace llvm::isNeutralConstant with SelectionDAG::isNeutralElement (PR #195827)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue May 5 04:01:38 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.
----------------
RKSimon wrote:
Do you think its worth renaming NeutralElement -> IdentityElement then?
https://github.com/llvm/llvm-project/pull/195827
More information about the llvm-commits
mailing list