summaryrefslogtreecommitdiff
path: root/src/compiler/codegen/LocalOptimizations.cc
diff options
context:
space:
mode:
author buzbee <buzbee@google.com> 2012-11-07 16:13:14 -0800
committer buzbee <buzbee@google.com> 2012-11-08 05:44:02 -0800
commit07131ca93c301e5cbd6a8702d6af777e1662fe65 (patch)
treeae60544b0065f8fc935bc254cc5893c3a3f89350 /src/compiler/codegen/LocalOptimizations.cc
parentebf6aa8185d59eeaa428b51a7e32ccc2b9ab1daf (diff)
Refactor codegen resource masks
Another step towards a single compiler: unified the bulk of the target-specific instruction resource use/def maps. This will allow more shared code usage, and eliminates target-specific defines used by otherwise common code. Change-Id: I4132cb4d31647517a654ffdf6c87843b84af132b
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 c0e6036b7f..356f4f93e4 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 = (ENCODE_REG_PC | thisLIR->useMask) & ~ENCODE_MEM;
+ stopUseRegMask = (getPCUseDefEncoding() | 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 |= ENCODE_REG_PC;
+ stopUseAllMask |= getPCUseDefEncoding();
}
}