[llvm] [SDAG] Convert `SDNodeFlags` into an enumeration (PR #114061)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 29 09:15:09 PDT 2024
================
@@ -2892,11 +2892,11 @@ SDValue DAGCombiner::visitADDLike(SDNode *N) {
if (N->getFlags().hasNoUnsignedWrap() &&
N0->getFlags().hasNoUnsignedWrap() &&
N0.getOperand(0)->getFlags().hasNoUnsignedWrap()) {
- Flags.setNoUnsignedWrap(true);
+ Flags = SDNodeFlags::NoUnsignedWrap;
----------------
goldsteinn wrote:
Here and below, imo just make it all `|=`.
https://github.com/llvm/llvm-project/pull/114061
More information about the llvm-commits
mailing list