From 07131ca93c301e5cbd6a8702d6af777e1662fe65 Mon Sep 17 00:00:00 2001 From: buzbee Date: Wed, 7 Nov 2012 16:13:14 -0800 Subject: 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 --- src/compiler/codegen/LocalOptimizations.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compiler/codegen/LocalOptimizations.cc') 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(); } } -- cgit v1.2.3-59-g8ed1b