aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-06-23 23:38:07 +0000
committerGabor Greif <ggreif@gmail.com>2010-06-23 23:38:07 +0000
commit1abbde310302c67b8e3a01565690e3730b6b3a57 (patch)
tree010c45a2527f97d7361efc76173214ff546c73c5 /llvm/lib/Analysis/ValueTracking.cpp
parent1d389c4b024416ef843bcebf6309dd0c377aafd8 (diff)
downloadllvm-1abbde310302c67b8e3a01565690e3730b6b3a57.zip
llvm-1abbde310302c67b8e3a01565690e3730b6b3a57.tar.gz
llvm-1abbde310302c67b8e3a01565690e3730b6b3a57.tar.bz2
use ArgOperand accessors
llvm-svn: 106697
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r--llvm/lib/Analysis/ValueTracking.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index 7e8ec2e..b4c9884a 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -953,7 +953,7 @@ bool llvm::CannotBeNegativeZero(const Value *V, unsigned Depth) {
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->getArgOperand(0), Depth+1);
if (const CallInst *CI = dyn_cast<CallInst>(I))
if (const Function *F = CI->getCalledFunction()) {
@@ -966,7 +966,7 @@ bool llvm::CannotBeNegativeZero(const Value *V, unsigned Depth) {
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->getArgOperand(0), Depth+1);
}
}