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 be3ada7 commit 59b8110Copy full SHA for 59b8110
llvm/lib/Transforms/Vectorize/VPlanUtils.h
@@ -92,8 +92,8 @@ inline VPIRFlags getFlagsFromIndDesc(const InductionDescriptor &ID) {
92
// step differ, as this could sign-wrap over iterations.
93
bool HasNSW = OBO->hasNoSignedWrap() && ID.getConstIntStartValue() &&
94
ID.getConstIntStepValue() &&
95
- !(ID.getConstIntStartValue()->isNegative() ^
96
- ID.getConstIntStepValue()->isNegative());
+ ID.getConstIntStartValue()->isNegative() ==
+ ID.getConstIntStepValue()->isNegative();
97
return VPIRFlags::WrapFlagsTy(OBO->hasNoUnsignedWrap(), HasNSW);
98
}
99
0 commit comments