Move dex register check upwards in the Inliner stack am: 7a7a1e2c82

Original change: https://android-review.googlesource.com/c/platform/art/+/1831316

Change-Id: I436fb510da3495ad493ce668ebca053785b6830a