ARM64: Improve BoundsCheck for constant inputs. am: be53085e18
am: 5345f5cc31

Change-Id: Id2c748f3922c6da320447acaa58da051402a2427