commit | 73c6b7127aff4499e4d6a2edb219685aee178ee1 | [log] [tgz] |
---|---|---|
author | Owen Anderson <resistor@mac.com> | Mon Jul 13 20:58:05 2009 +0000 |
committer | Owen Anderson <resistor@mac.com> | Mon Jul 13 20:58:05 2009 +0000 |
tree | cabab2668e037a0276156e885bd54d5bd660eabd | |
parent | 69fbc7f477c21ce1d8ae5a4aa8a701e47aa2d163 [diff] [blame] |
Move more functionality over to LLVMContext. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75497 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/SimplifyLibCalls.cpp b/lib/Transforms/Scalar/SimplifyLibCalls.cpp index a2f9a82..8a28ca2 100644 --- a/lib/Transforms/Scalar/SimplifyLibCalls.cpp +++ b/lib/Transforms/Scalar/SimplifyLibCalls.cpp
@@ -1225,7 +1225,7 @@ // abs(x) -> x >s -1 ? x : -x Value *Op = CI->getOperand(1); Value *Pos = B.CreateICmpSGT(Op, - Context->getConstantIntAllOnesValue(Op->getType()), + Context->getAllOnesValue(Op->getType()), "ispos"); Value *Neg = B.CreateNeg(Op, "neg"); return B.CreateSelect(Pos, Op, Neg);