summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/local_optimizations.cc
diff options
context:
space:
mode:
author buzbee <buzbee@google.com> 2012-11-21 07:40:50 -0800
committer buzbee <buzbee@google.com> 2012-11-21 07:40:50 -0800
commitaad94383fc41e8f8770f0b2144f766a2ffa772e7 (patch)
treea887ff6101126e3d3d3045d09ea502561524ce1a /src/compiler/codegen/local_optimizations.cc
parent0c1e45fc411b05e026abf6a2e343927bbd1aa4ca (diff)
Quick Compiler: static, extern and inline cleanup
More declarations cleanup. Some dead code removal. No logic changes. Change-Id: Ife3d0426082f4eeae7c0010ceb92d7dbdc823c71
Diffstat (limited to 'src/compiler/codegen/local_optimizations.cc')
-rw-r--r--src/compiler/codegen/local_optimizations.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/compiler/codegen/local_optimizations.cc b/src/compiler/codegen/local_optimizations.cc
index d3897e7563..1e6e0d8fc5 100644
--- a/src/compiler/codegen/local_optimizations.cc
+++ b/src/compiler/codegen/local_optimizations.cc
@@ -29,7 +29,7 @@ namespace art {
#define LDLD_DISTANCE 4
#define LD_LATENCY 2
-inline bool IsDalvikRegisterClobbered(LIR* lir1, LIR* lir2)
+static bool IsDalvikRegisterClobbered(LIR* lir1, LIR* lir2)
{
int reg1Lo = DECODE_ALIAS_INFO_REG(lir1->aliasInfo);
int reg1Hi = reg1Lo + DECODE_ALIAS_INFO_WIDE(lir1->aliasInfo);
@@ -40,8 +40,7 @@ inline bool IsDalvikRegisterClobbered(LIR* lir1, LIR* lir2)
}
/* Convert a more expensive instruction (ie load) into a move */
-void ConvertMemOpIntoMove(CompilationUnit* cUnit, LIR* origLIR, int dest,
- int src)
+static void ConvertMemOpIntoMove(CompilationUnit* cUnit, LIR* origLIR, int dest, int src)
{
/* Insert a move to replace the load */
LIR* moveLIR;
@@ -73,8 +72,7 @@ void ConvertMemOpIntoMove(CompilationUnit* cUnit, LIR* origLIR, int dest,
* 1) They are must-aliases
* 2) The memory location is not written to in between
*/
-void ApplyLoadStoreElimination(CompilationUnit* cUnit, LIR* headLIR,
- LIR* tailLIR)
+static void ApplyLoadStoreElimination(CompilationUnit* cUnit, LIR* headLIR, LIR* tailLIR)
{
LIR* thisLIR;