summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/LocalOptimizations.cc
diff options
context:
space:
mode:
author Bill Buzbee <buzbee@google.com> 2012-11-08 13:37:13 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2012-11-08 13:37:13 -0800
commitd21df09a54b08fbf90f9eb64801f0b03a100b8ec (patch)
tree7bad64cf4afe2825a95e09442ab2f029105fbcc7 /src/compiler/codegen/LocalOptimizations.cc
parent9572fa7e2742e5b3c706699a4a9f262cf93fb6e7 (diff)
parent4b39c9f1b77ff32cf5760e6bf77c189678e2c9a6 (diff)
Merge "Revert "Refactor codegen resource masks"" into dalvik-dev
Diffstat (limited to 'src/compiler/codegen/LocalOptimizations.cc')
-rw-r--r--src/compiler/codegen/LocalOptimizations.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/codegen/LocalOptimizations.cc b/src/compiler/codegen/LocalOptimizations.cc
index 356f4f93e4..c0e6036b7f 100644
--- a/src/compiler/codegen/LocalOptimizations.cc
+++ b/src/compiler/codegen/LocalOptimizations.cc
@@ -121,7 +121,7 @@ void applyLoadStoreElimination(CompilationUnit* cUnit, LIR* headLIR,
* region bits since stopMask is used to check data/control
* dependencies.
*/
- stopUseRegMask = (getPCUseDefEncoding() | thisLIR->useMask) & ~ENCODE_MEM;
+ stopUseRegMask = (ENCODE_REG_PC | thisLIR->useMask) & ~ENCODE_MEM;
}
for (checkLIR = NEXT_LIR(thisLIR);
@@ -298,7 +298,7 @@ void applyLoadHoisting(CompilationUnit* cUnit, LIR* headLIR, LIR* tailLIR)
* conservatively here.
*/
if (stopUseAllMask & ENCODE_HEAP_REF) {
- stopUseAllMask |= getPCUseDefEncoding();
+ stopUseAllMask |= ENCODE_REG_PC;
}
}