File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
llvm/include/llvm/Transforms/Utils Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -563,11 +563,14 @@ bool inferAttributesFromOthers(Function &F);
563
563
struct OverflowTracking {
564
564
bool HasNUW = true ;
565
565
bool HasNSW = true ;
566
+
567
+ // Note: At the moment, users are responsible to manage AllKnownNonNegative
568
+ // and AllKnownNonZero manually. AllKnownNonNegative can be true in a case
569
+ // where one of the operands is negative, but one the operators is not NSW.
570
+ // AllKnownNonNegative should not be used independently of HasNSW
566
571
bool AllKnownNonNegative = true ;
567
572
bool AllKnownNonZero = true ;
568
- // Note: AllKnownNonNegative can be true in a case where one of the operands
569
- // is negative, but one the operators is not NSW. AllKnownNonNegative should
570
- // not be used independently of HasNSW
573
+
571
574
OverflowTracking () = default ;
572
575
573
576
// / Merge in the no-wrap flags from \p I.
You can’t perform that action at this time.
0 commit comments