summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-04-27 14:54:59 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-04-27 14:54:59 +0000
commit38df4bd0318f4692be310b8dde355c4eea367dd7 (patch)
tree40a2c6f8ae796e97a245dd6787ae979226f49334 /lib/CodeGen/CodeGenPrepare.cpp
parent35d4ad33f64f38a4cb9a7ddff44536c4853c9f88 (diff)
downloadllvm-38df4bd0318f4692be310b8dde355c4eea367dd7.tar.gz
llvm-38df4bd0318f4692be310b8dde355c4eea367dd7.tar.bz2
llvm-38df4bd0318f4692be310b8dde355c4eea367dd7.tar.xz
Make helper functions static.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207359 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r--lib/CodeGen/CodeGenPrepare.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CodeGenPrepare.cpp b/lib/CodeGen/CodeGenPrepare.cpp
index ff2459df87..d2559cf53d 100644
--- a/lib/CodeGen/CodeGenPrepare.cpp
+++ b/lib/CodeGen/CodeGenPrepare.cpp
@@ -634,7 +634,7 @@ static bool OptimizeCmpExpression(CmpInst *CI) {
/// 1. Truncate instruction
/// 2. And instruction and the imm is a mask of the low bits:
/// imm & (imm+1) == 0
-bool isExtractBitsCandidateUse(Instruction *User) {
+static bool isExtractBitsCandidateUse(Instruction *User) {
if (!isa<TruncInst>(User)) {
if (User->getOpcode() != Instruction::And ||
!isa<ConstantInt>(User->getOperand(1)))
@@ -650,7 +650,7 @@ bool isExtractBitsCandidateUse(Instruction *User) {
/// SinkShiftAndTruncate - sink both shift and truncate instruction
/// to the use of truncate's BB.
-bool
+static bool
SinkShiftAndTruncate(BinaryOperator *ShiftI, Instruction *User, ConstantInt *CI,
DenseMap<BasicBlock *, BinaryOperator *> &InsertedShifts,
const TargetLowering &TLI) {