summaryrefslogtreecommitdiff
path: root/compiler/optimizing/intrinsics.cc
diff options
context:
space:
mode:
author Santiago Aboy Solanes <solanes@google.com> 2022-07-20 11:13:39 +0100
committer Santiago Aboy Solanes <solanes@google.com> 2022-07-25 13:42:03 +0000
commit8ed39499df03e4624695ccc526a5ae7a5abd8d02 (patch)
tree592b9102dddfdd4e1e3ebb962351c62cf7c9b042 /compiler/optimizing/intrinsics.cc
parentb01484c1515e2bf03d58c66eddfc80cfb5f204be (diff)
Mark graphs as always throwing alongside methods
This CL removes the need of using an extra boolean (`did_set_always_throws`) as we already encode the information in HasAlwaysThrowingInvokes after aosp/2153582. Also, if we know that a method always throws in the particular instance that it is called, we can mark it as such. This is an improvement versus using the dex instructions as methods like: int foo(int a) { if (a == 0) { throw new Error("a is 0!"); } return a / a; } will be marked as always throws if called as foo(0). Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b Change-Id: I5368878d0023775c53028a5cccd4a1111b50f60e
Diffstat (limited to 'compiler/optimizing/intrinsics.cc')
0 files changed, 0 insertions, 0 deletions