summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/LocalOptimizations.cc
diff options
context:
space:
mode:
author Bill Buzbee <buzbee@google.com> 2012-11-08 13:32:05 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2012-11-08 13:32:05 -0800
commit4b39c9f1b77ff32cf5760e6bf77c189678e2c9a6 (patch)
tree95cf9de07529d58d847898087f8c5fd6c1e1a4fd /src/compiler/codegen/LocalOptimizations.cc
parent07131ca93c301e5cbd6a8702d6af777e1662fe65 (diff)
Revert "Refactor codegen resource masks"
This reverts commit 07131ca93c301e5cbd6a8702d6af777e1662fe65 There's a problem with the x86 build - reverting until I track it down. Change-Id: I938ed30617ee943c9dba2d52d034e6d198b32e4b
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;
}
}