OSDN Git Service

Make the SSA builder honor the debuggable flag.
authorNicolas Geoffray <ngeoffray@google.com>
Mon, 9 Mar 2015 10:02:49 +0000 (10:02 +0000)
committerNicolas Geoffray <ngeoffray@google.com>
Tue, 10 Mar 2015 16:20:35 +0000 (16:20 +0000)
commite0fe7ae36180863e45cbb9d1e6e9c30b1b1a949c
tree26269a55f16d8bee5b5898318fa18491fd72061c
parent3dd536ffd7e8f82e4587964545b272acbd61d68e
Make the SSA builder honor the debuggable flag.

This requires to properly type phis that are only
used by environments, and discard phis with incomptable types.
The code generators do not handle these conflicting types. In
the process, ensure a phi has a type that does not depend
on the order of the inputs (for example (char, short) -> short),
and set int for int-like types. We can refine this later.

Change-Id: I60ab601d6d00b1cbf18623ee4ff1795aa28f84a1
14 files changed:
compiler/optimizing/graph_checker.cc
compiler/optimizing/inliner.cc
compiler/optimizing/nodes.h
compiler/optimizing/optimizing_compiler.cc
compiler/optimizing/primitive_type_propagation.cc
compiler/optimizing/ssa_builder.cc
compiler/optimizing/ssa_builder.h
test/457-regs/expected.txt [new file with mode: 0644]
test/457-regs/info.txt [new file with mode: 0644]
test/457-regs/regs_jni.cc [new file with mode: 0644]
test/457-regs/smali/PhiLiveness.smali [new file with mode: 0644]
test/457-regs/src/Main.java [new file with mode: 0644]
test/Android.libarttest.mk
test/Android.run-test.mk