Extract the handling from cannotBeOrderedLessThanZeroImpl and
avoid the mentioned -0 bug.
Details
Details
Diff Detail
Diff Detail
Event Timeline
| llvm/lib/Analysis/ValueTracking.cpp | ||
|---|---|---|
| 4557 | This is checking that bit 0 is the only bit known to be zero. I think you want ExponentKnownBits.Zero[0]. | |
| 4558 | I don't think the result can be -0 here either, can it? | |
| 4573–4575 | I think this simplifies to: if (KnownSrc.isKnownNot(fcNegative)) Known.knownNot(fcNegative); | |
| 4578–4580 | Remove this? | |
| llvm/lib/Analysis/ValueTracking.cpp | ||
|---|---|---|
| 4573–4575 | don't think denormal matters after all | |