[llvm] 6a082ed - [SelectionDAG] Fix copy/paste mistake in SDNodeFlags::intersectWith

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 21 12:51:42 PST 2023


Author: Craig Topper
Date: 2023-11-21T12:47:38-08:00
New Revision: 6a082ed6923e2d9fac508ba0a8190176b50c23fd

URL: https://github.com/llvm/llvm-project/commit/6a082ed6923e2d9fac508ba0a8190176b50c23fd
DIFF: https://github.com/llvm/llvm-project/commit/6a082ed6923e2d9fac508ba0a8190176b50c23fd.diff

LOG: [SelectionDAG] Fix copy/paste mistake in SDNodeFlags::intersectWith

The NonNeg flag was being Anded with the Exact flag.

Added: 
    

Modified: 
    llvm/include/llvm/CodeGen/SelectionDAGNodes.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
index 05c0b9674e98b96..5c44538fe699747 100644
--- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -454,7 +454,7 @@ struct SDNodeFlags {
     NoUnsignedWrap &= Flags.NoUnsignedWrap;
     NoSignedWrap &= Flags.NoSignedWrap;
     Exact &= Flags.Exact;
-    NonNeg &= Flags.Exact;
+    NonNeg &= Flags.NonNeg;
     NoNaNs &= Flags.NoNaNs;
     NoInfs &= Flags.NoInfs;
     NoSignedZeros &= Flags.NoSignedZeros;


        


More information about the llvm-commits mailing list