summaryrefslogtreecommitdiff
path: root/compiler/optimizing/block_builder.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2017-11-23 10:44:11 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2017-12-01 13:03:29 +0000
commitdbb9aef046301940d0b253c918a5c78b277330ba (patch)
tree8803fa971c0200d56aa8eba7386374eecda01c17 /compiler/optimizing/block_builder.cc
parent65e0432cdaf3ee170045b21943c24eae5d6a0357 (diff)
Log at places we fail to compile.
Useful when diagnosing some compiler issues / limitations. Test: test.py Change-Id: I8759d0e78b0682b300ddcadfe02793432cab2036
Diffstat (limited to 'compiler/optimizing/block_builder.cc')
-rw-r--r--compiler/optimizing/block_builder.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/optimizing/block_builder.cc b/compiler/optimizing/block_builder.cc
index a6687fe258..ed000327ff 100644
--- a/compiler/optimizing/block_builder.cc
+++ b/compiler/optimizing/block_builder.cc
@@ -58,6 +58,7 @@ bool HBasicBlockBuilder::CreateBranchTargets() {
// cannot have any code afterwards.
} else {
// The TryItem spans beyond the end of the CodeItem. This is invalid code.
+ VLOG(compiler) << "Not compiled: TryItem spans beyond the end of the CodeItem";
return false;
}
}
@@ -110,6 +111,7 @@ bool HBasicBlockBuilder::CreateBranchTargets() {
if (next == instructions.end()) {
// In the normal case we should never hit this but someone can artificially forge a dex
// file to fall-through out the method code. In this case we bail out compilation.
+ VLOG(compiler) << "Not compiled: Fall-through beyond the CodeItem";
return false;
}
MaybeCreateBlockAt(next.DexPc());