Deleted Added
full compact
ValueTracking.cpp (193323) ValueTracking.cpp (193574)
1//===- ValueTracking.cpp - Walk computations to compute properties --------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 757 unchanged lines hidden (view full) ---

766
767 if (Depth == 6)
768 return 1; // Limit search depth.
769
770 const Instruction *I = dyn_cast<Instruction>(V);
771 if (I == 0) return false;
772
773 // (add x, 0.0) is guaranteed to return +0.0, not -0.0.
1//===- ValueTracking.cpp - Walk computations to compute properties --------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//

--- 757 unchanged lines hidden (view full) ---

766
767 if (Depth == 6)
768 return 1; // Limit search depth.
769
770 const Instruction *I = dyn_cast<Instruction>(V);
771 if (I == 0) return false;
772
773 // (add x, 0.0) is guaranteed to return +0.0, not -0.0.
774 if (I->getOpcode() == Instruction::Add &&
774 if (I->getOpcode() == Instruction::FAdd &&
775 isa<ConstantFP>(I->getOperand(1)) &&
776 cast<ConstantFP>(I->getOperand(1))->isNullValue())
777 return true;
778
779 // sitofp and uitofp turn into +0.0 for zero.
780 if (isa<SIToFPInst>(I) || isa<UIToFPInst>(I))
781 return true;
782

--- 297 unchanged lines hidden ---
775 isa<ConstantFP>(I->getOperand(1)) &&
776 cast<ConstantFP>(I->getOperand(1))->isNullValue())
777 return true;
778
779 // sitofp and uitofp turn into +0.0 for zero.
780 if (isa<SIToFPInst>(I) || isa<UIToFPInst>(I))
781 return true;
782

--- 297 unchanged lines hidden ---