From 4b39c9f1b77ff32cf5760e6bf77c189678e2c9a6 Mon Sep 17 00:00:00 2001 From: Bill Buzbee Date: Thu, 8 Nov 2012 13:32:05 -0800 Subject: 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 --- 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 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; } } -- cgit v1.2.3-59-g8ed1b