diff options
| author | 2012-11-14 13:32:55 -0800 | |
|---|---|---|
| committer | 2012-11-14 13:32:55 -0800 | |
| commit | 8bb8e8653b4c3ad5d87863f98ffec5f95a96c1fa (patch) | |
| tree | fa64f9ad72867a7928ade0708533d8fe51f99db4 /src/compiler/codegen/LocalOptimizations.cc | |
| parent | 725a957985171d712d5c048cc3d00ff14968784b (diff) | |
| parent | f0504cdc5b6400edd4b39eea64ac280465042d5b (diff) | |
Merge "Quick backend: rename target-specific #defines" into dalvik-dev
Diffstat (limited to 'src/compiler/codegen/LocalOptimizations.cc')
| -rw-r--r-- | src/compiler/codegen/LocalOptimizations.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compiler/codegen/LocalOptimizations.cc b/src/compiler/codegen/LocalOptimizations.cc index d2275aad4a..2688d65877 100644 --- a/src/compiler/codegen/LocalOptimizations.cc +++ b/src/compiler/codegen/LocalOptimizations.cc @@ -151,7 +151,7 @@ void applyLoadStoreElimination(CompilationUnit* cUnit, LIR* headLIR, DCHECK(!(EncodingMap[checkLIR->opcode].flags & IS_STORE)); /* Same value && same register type */ if (checkLIR->aliasInfo == thisLIR->aliasInfo && - REGTYPE(checkLIR->operands[0]) == REGTYPE(nativeRegId)) { + sameRegType(checkLIR->operands[0], nativeRegId)) { /* * Different destination register - insert * a move @@ -166,8 +166,7 @@ void applyLoadStoreElimination(CompilationUnit* cUnit, LIR* headLIR, /* Must alias */ if (checkLIR->aliasInfo == thisLIR->aliasInfo) { /* Only optimize compatible registers */ - bool regCompatible = - REGTYPE(checkLIR->operands[0]) == REGTYPE(nativeRegId); + bool regCompatible = sameRegType(checkLIR->operands[0], nativeRegId); if ((isThisLIRLoad && isCheckLIRLoad) || (!isThisLIRLoad && isCheckLIRLoad)) { /* RAR or RAW */ |