Statistics
| Branch: | Revision:

root / tcg @ 9f8540ec

Name Size
  arm
  hppa
  i386
  ia64
  mips
  ppc
  ppc64
  s390
  sparc
  tci
LICENSE 146 Bytes
README 15 kB
TODO 394 Bytes
optimize.c 29.5 kB
tcg-op.h 84.6 kB
tcg-opc.h 9.6 kB
tcg-runtime.h 706 Bytes
tcg.c 77.5 kB
tcg.h 18.7 kB

Latest revisions

# Date Author Comment
4438c8a9 10/20/2012 10:54 am Richard Henderson

exec: Allocate code_gen_prologue from code_gen_buffer

We had a hack for arm and sparc, allocating code_gen_prologue to a
special section. Which, honestly does no good under certain cases.
We've already got limits on code_gen_buffer_size to ensure that all...

41a05a45 10/19/2012 09:28 pm Aurelien Jarno

Merge branch 'linux-user-for-upstream' of git://git.linaro.org/people/rikuvoipio/qemu

  • 'linux-user-for-upstream' of git://git.linaro.org/people/rikuvoipio/qemu:
    linux-user: register align p{read, write}64
    linux-user: ppc: mark as long long aligned
    tcg: Remove TCG_TARGET_HAS_GUEST_BASE define...
1414968a 10/17/2012 06:51 pm Richard Henderson

tcg: Optimize mulu2

Like add2, do operand ordering, constant folding, and dead operand
elimination. The latter happens about 15% of all mulu2 during an
x86_64 bios boot.

Signed-off-by: Richard Henderson <>
Signed-off-by: Aurelien Jarno <>

212c328d 10/17/2012 06:51 pm Richard Henderson

tcg: Constant fold add2 and sub2

Signed-off-by: Richard Henderson <>
Signed-off-by: Aurelien Jarno <>

1305c451 10/17/2012 06:51 pm Richard Henderson

tcg: Optimize half-dead add2/sub2

When x86_64 guest is not in 64-bit mode, the high-part of the 64-bit
add is dead. When the host is 32-bit, we can simplify to 32-bit
arithmetic.

Signed-off-by: Richard Henderson <>
Signed-off-by: Aurelien Jarno <>

6c4382f8 10/17/2012 06:51 pm Richard Henderson

tcg: Do constant folding on double-word comparisons

Signed-off-by: Richard Henderson <>
Signed-off-by: Aurelien Jarno <>

9519da7e 10/17/2012 06:51 pm Richard Henderson

tcg: Split out subroutines from do_constant_folding_cond

We can re-use these for implementing double-word folding.

Signed-off-by: Richard Henderson <>
Signed-off-by: Aurelien Jarno <>

bc1473ef 10/17/2012 06:32 pm Richard Henderson

tcg: Optimize double-word comparisons against zero

Signed-off-by: Richard Henderson <>
Signed-off-by: Aurelien Jarno <>

6e14e91b 10/17/2012 06:32 pm Richard Henderson

tcg: Use common code when failing to optimize

This saves a whole lot of repetitive code sequences.

Signed-off-by: Richard Henderson <>
Signed-off-by: Aurelien Jarno <>

0bfcb865 10/17/2012 06:31 pm Richard Henderson

tcg: Swap commutative double-word comparisons

Signed-off-by: Richard Henderson <>
Signed-off-by: Aurelien Jarno <>

View revisions

Also available in: Atom