aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-07-07 14:47:51 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-07-07 14:47:51 +0000
commit6cbe670db89adb04773a18454455afcb3c9a18c8 (patch)
tree4eb5384f5b8e43840ca7995b29864816afd47852 /llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
parent3705283b24fc317de8f3a367826a6cb8e3a557f4 (diff)
downloadllvm-6cbe670db89adb04773a18454455afcb3c9a18c8.zip
llvm-6cbe670db89adb04773a18454455afcb3c9a18c8.tar.gz
llvm-6cbe670db89adb04773a18454455afcb3c9a18c8.tar.bz2
Make helper functions static.
llvm-svn: 212460
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp b/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
index c18ed2d..99f0f1f 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
@@ -961,8 +961,8 @@ bool InstCombiner::WillNotOverflowUnsignedAdd(Value *LHS, Value *RHS) {
// ADD(XOR(OR(Z, NOT(C)), C)), 1) == NEG(AND(Z, C))
// ADD(XOR(AND(Z, C), C), 1) == NEG(OR(Z, ~C))
// XOR(AND(Z, C), (C + 1)) == NEG(OR(Z, ~C)) if C is even
-Value *checkForNegativeOperand(BinaryOperator &I,
- InstCombiner::BuilderTy *Builder) {
+static Value *checkForNegativeOperand(BinaryOperator &I,
+ InstCombiner::BuilderTy *Builder) {
Value *LHS = I.getOperand(0), *RHS = I.getOperand(1);
// This function creates 2 instructions to replace ADD, we need at least one