Statistics
| Branch: | Revision:

root / tcg @ 92f562ec

Name Size
  arm
  hppa
  i386
  ia64
  mips
  ppc
  ppc64
  s390
  sparc
LICENSE 146 Bytes
README 14.9 kB
TODO 394 Bytes
optimize.c 19.7 kB
tcg-op.h 76.7 kB
tcg-opc.h 8.9 kB
tcg-runtime.h 706 Bytes
tcg.c 66.2 kB
tcg.h 16 kB

Latest revisions

# Date Author Comment
7267c094 08/21/2011 07:01 am Anthony Liguori

Use glib memory allocation and free functions

qemu_malloc/qemu_free no longer exist after this commit.

Signed-off-by: Anthony Liguori <>

e31b0a7c 08/07/2011 12:33 pm Blue Swirl

TCG: fix copy propagation

Copy propagation introduced in 22613af4a6d9602001e6d0e7b6d98aa40aa018dc
considered only global registers. However, register temps and stack
allocated locals must be handled differently because register temps
don't survive across brcond....

2ec00650 07/30/2011 09:54 pm Blue Swirl

TCG: fix breakage by previous patch

Fix incorrect logic and typos in previous commit
1bfd07bdfe56cea43dbe258dcb161e46b0ee29b7.

Signed-off-by: Blue Swirl <>

1bfd07bd 07/30/2011 03:21 pm Blue Swirl

TCG: fix breakage on some RISC hosts

Fix breakage by a640f03178c22355a158fa9378e4f8bfa4f517a6
and 55c0975c5b358e948b9ae7bd7b07eff92508e756.

Some TCG targets don't implement all TCG ops, so make
optimizing those conditional.

Signed-off-by: Blue Swirl <>

a640f031 07/30/2011 01:51 pm Kirill Batuzov

Do constant folding for unary operations.

Perform constant folding for NOT and EXT{8,16,32}{S,U} operations.

Signed-off-by: Kirill Batuzov <>
Signed-off-by: Blue Swirl <>

9a81090b 07/30/2011 01:51 pm Kirill Batuzov

Do constant folding for boolean operations.

Perform constant folding for AND, OR, XOR operations.

Signed-off-by: Kirill Batuzov <>
Signed-off-by: Blue Swirl <>

55c0975c 07/30/2011 01:51 pm Kirill Batuzov

Do constant folding for shift operations.

Perform constant forlding for SHR, SHL, SAR, ROTR, ROTL operations.

Signed-off-by: Kirill Batuzov <>
Signed-off-by: Blue Swirl <>

53108fb5 07/30/2011 01:51 pm Kirill Batuzov

Do constant folding for basic arithmetic operations.

Perform actual constant folding for ADD, SUB and MUL operations.

Signed-off-by: Kirill Batuzov <>
Signed-off-by: Blue Swirl <>

22613af4 07/30/2011 01:51 pm Kirill Batuzov

Add copy and constant propagation.

Make tcg_constant_folding do copy and constant propagation. It is a
preparational work before actual constant folding.

Signed-off-by: Kirill Batuzov <>
Signed-off-by: Blue Swirl <>

8f2e8c07 07/30/2011 01:51 pm Kirill Batuzov

Add TCG optimizations stub

Added file tcg/optimize.c to hold TCG optimizations. Function tcg_optimize
is called from tcg_gen_code_common. It calls other functions performing
specific optimizations. Stub for constant folding was added.

Signed-off-by: Kirill Batuzov <>...

View revisions

Also available in: Atom