summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorDavid Brazdil <dbrazdil@google.com>2016-01-08 17:37:10 +0000
committerDavid Brazdil <dbrazdil@google.com>2016-01-14 16:22:13 +0000
commit6de1938e562b0d06e462512dd806166e754035ea (patch)
treef9df086a73860c20768d17ff7bc5be4139567941 /compiler/optimizing/graph_visualizer.cc
parentf5b84ee14a3bc578f799a39dca1ae512b49356ea (diff)
ART: Remove incorrect HFakeString optimization
Simplification of HFakeString assumes that it cannot be used until String.<init> is called which is not true and causes different behaviour between the compiler and the interpreter. This patch removes the optimization together with the HFakeString instruction. Instead, HNewInstance is generated and an empty String allocated until it is replaced with the result of the StringFactory call. This is consistent with the behaviour of the interpreter but is too conservative. A follow-up CL will attempt to optimize out the initial allocation when possible. Bug: 26457745 Bug: 26486014 Change-Id: I7139e37ed00a880715bfc234896a930fde670c44
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions