summaryrefslogtreecommitdiffstats
path: root/compiler/optimizing/parallel_move_resolver.h
diff options
context:
space:
mode:
authorGuillaume Sanchez <guillaumesa@google.com>2015-04-15 18:57:27 +0000
committerGuillaume Sanchez <guillaumesa@google.com>2015-04-15 18:57:27 +0000
commite14590bdfed24df30e6b7545fc819ba03ff8bba1 (patch)
tree1fe89a424c91dae7adc07ebd620dce8297a0854e /compiler/optimizing/parallel_move_resolver.h
parenta5c19ce8d200d68a528f2ce0ebff989106c4a933 (diff)
downloadart-e14590bdfed24df30e6b7545fc819ba03ff8bba1.tar.gz
art-e14590bdfed24df30e6b7545fc819ba03ff8bba1.tar.bz2
art-e14590bdfed24df30e6b7545fc819ba03ff8bba1.zip
Revert "[optimizing] Improve x86 parallel moves/swaps"
This reverts commit a5c19ce8d200d68a528f2ce0ebff989106c4a933. This commit introduces a performance regression on CaffeineLogic of 30%. Change-Id: I917e206e249d44e1748537bc1b2d31054ea4959d
Diffstat (limited to 'compiler/optimizing/parallel_move_resolver.h')
-rw-r--r--compiler/optimizing/parallel_move_resolver.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/compiler/optimizing/parallel_move_resolver.h b/compiler/optimizing/parallel_move_resolver.h
index 173cffc71e..3fa1b37afd 100644
--- a/compiler/optimizing/parallel_move_resolver.h
+++ b/compiler/optimizing/parallel_move_resolver.h
@@ -42,15 +42,10 @@ class ParallelMoveResolver : public ValueObject {
protected:
class ScratchRegisterScope : public ValueObject {
public:
- // Spill a scratch register if no regs are free.
ScratchRegisterScope(ParallelMoveResolver* resolver,
int blocked,
int if_scratch,
int number_of_registers);
- // Grab a scratch register only if available.
- ScratchRegisterScope(ParallelMoveResolver* resolver,
- int blocked,
- int number_of_registers);
~ScratchRegisterScope();
int GetRegister() const { return reg_; }
@@ -67,8 +62,6 @@ class ParallelMoveResolver : public ValueObject {
// Allocate a scratch register for performing a move. The method will try to use
// a register that is the destination of a move, but that move has not been emitted yet.
int AllocateScratchRegister(int blocked, int if_scratch, int register_count, bool* spilled);
- // As above, but return -1 if no free register.
- int AllocateScratchRegister(int blocked, int register_count);
// Emit a move.
virtual void EmitMove(size_t index) = 0;