We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb1e3df commit b1f1329Copy full SHA for b1f1329
llvm/include/llvm/Transforms/Scalar/Reassociate.h
@@ -65,16 +65,14 @@ struct Factor {
65
};
66
67
struct OverflowTracking {
68
- bool HasNUW;
69
- bool HasNSW;
70
- bool AllKnownNonNegative;
71
- bool AllKnownNonZero;
+ bool HasNUW = true;
+ bool HasNSW = true;
+ bool AllKnownNonNegative = true;
+ bool AllKnownNonZero = true;
72
// Note: AllKnownNonNegative can be true in a case where one of the operands
73
// is negative, but one the operators is not NSW. AllKnownNonNegative should
74
// not be used independently of HasNSW
75
- OverflowTracking()
76
- : HasNUW(true), HasNSW(true), AllKnownNonNegative(true),
77
- AllKnownNonZero(true) {}
+ OverflowTracking() = default;
78
79
80
class XorOpnd;
0 commit comments