mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +00:00
In which I discover that zero+zero is zero, d'oh!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124188 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -740,10 +740,10 @@ bool llvm::isKnownNonZero(Value *V, const TargetData *TD, unsigned Depth) {
|
||||
ComputeSignBit(Y, YKnownNonNegative, YKnownNegative, TD, Depth);
|
||||
|
||||
// If X and Y are both non-negative (as signed values) then their sum is not
|
||||
// zero.
|
||||
// zero unless both X and Y are zero.
|
||||
if (XKnownNonNegative && YKnownNonNegative)
|
||||
return false;
|
||||
// return true;
|
||||
if (isKnownNonZero(X, TD, Depth) || isKnownNonZero(Y, TD, Depth))
|
||||
return true;
|
||||
|
||||
// If X and Y are both negative (as signed values) then their sum is not
|
||||
// zero unless both X and Y equal INT_MIN.
|
||||
|
Reference in New Issue
Block a user