[llvm-branch-commits] [llvm-branch] r100863 - /llvm/branches/ggreif/CallInst-operands/lib/Analysis/ValueTracking.cpp
Gabor Greif
ggreif at gmail.com
Fri Apr 9 08:30:50 PDT 2010
Author: ggreif
Date: Fri Apr 9 10:30:50 2010
New Revision: 100863
URL: http://llvm.org/viewvc/llvm-project?rev=100863&view=rev
Log:
shift operands
Modified:
llvm/branches/ggreif/CallInst-operands/lib/Analysis/ValueTracking.cpp
Modified: llvm/branches/ggreif/CallInst-operands/lib/Analysis/ValueTracking.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/CallInst-operands/lib/Analysis/ValueTracking.cpp?rev=100863&r1=100862&r2=100863&view=diff
==============================================================================
--- llvm/branches/ggreif/CallInst-operands/lib/Analysis/ValueTracking.cpp (original)
+++ llvm/branches/ggreif/CallInst-operands/lib/Analysis/ValueTracking.cpp Fri Apr 9 10:30:50 2010
@@ -953,7 +953,7 @@
if (const IntrinsicInst *II = dyn_cast<IntrinsicInst>(I))
// sqrt(-0.0) = -0.0, no other negative results are possible.
if (II->getIntrinsicID() == Intrinsic::sqrt)
- return CannotBeNegativeZero(II->getOperand(1), Depth+1);
+ return CannotBeNegativeZero(II->getOperand(0), Depth+1);
if (const CallInst *CI = dyn_cast<CallInst>(I))
if (const Function *F = CI->getCalledFunction()) {
@@ -966,7 +966,7 @@
if (F->getName() == "fabsl") return true;
if (F->getName() == "sqrt" || F->getName() == "sqrtf" ||
F->getName() == "sqrtl")
- return CannotBeNegativeZero(CI->getOperand(1), Depth+1);
+ return CannotBeNegativeZero(CI->getOperand(0), Depth+1);
}
}
More information about the llvm-branch-commits
mailing list