commit | d060b2576ab10d463e339186bcc61860500cbce0 | [log] [tgz] |
---|---|---|
author | Eric Christopher <echristo@apple.com> | Wed Dec 23 02:51:48 2009 +0000 |
committer | Eric Christopher <echristo@apple.com> | Wed Dec 23 02:51:48 2009 +0000 |
tree | 4a76d45fd285a534bce646add04a8075d4165520 | |
parent | ac105c4dca5870bf9ebd40fd0ed80bb2fea2e343 [diff] |
Update objectsize intrinsic and associated dependencies. Fix lowering code and update testcases. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91979 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 36e1a81..85c9544 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -4688,7 +4688,7 @@ SDValue Arg = getValue(I.getOperand(0)); EVT Ty = Arg.getValueType(); - if (CI->getZExtValue() < 2) + if (CI->getZExtValue() == 0) Res = DAG.getConstant(-1ULL, Ty); else Res = DAG.getConstant(0, Ty);
diff --git a/lib/Transforms/Scalar/SimplifyLibCalls.cpp b/lib/Transforms/Scalar/SimplifyLibCalls.cpp index 170e3aa..4c6580f 100644 --- a/lib/Transforms/Scalar/SimplifyLibCalls.cpp +++ b/lib/Transforms/Scalar/SimplifyLibCalls.cpp
@@ -1122,7 +1122,7 @@ const Type *Ty = Callee->getFunctionType()->getReturnType(); - if (Const->getZExtValue() < 2) + if (Const->getZExtValue() == 0) return Constant::getAllOnesValue(Ty); else return ConstantInt::get(Ty, 0);