Arm64: Take more bounds checks into consideration when inlining immediates (#24762)
authorTamar Christina <48126768+TamarChristinaArm@users.noreply.github.com>
Fri, 24 May 2019 23:26:18 +0000 (00:26 +0100)
committerCarol Eidt <carol.eidt@microsoft.com>
Fri, 24 May 2019 23:26:18 +0000 (16:26 -0700)
* Arm64: Take GT_ARR_BOUNDS_CHECK to consideration for inlining immediate in cmp

* Arm64: Add SIMD and HW_INTRINSIC to IsContainableImmed

src/jit/lowerarmarch.cpp

index adfc34a..bec2780 100644 (file)
@@ -92,6 +92,9 @@ bool Lowering::IsContainableImmed(GenTree* parentNode, GenTree* childNode)
             case GT_LE:
             case GT_GE:
             case GT_GT:
+            case GT_ARR_BOUNDS_CHECK:
+            case GT_SIMD_CHK:
+            case GT_HW_INTRINSIC_CHK:
                 return emitter::emitIns_valid_imm_for_cmp(immVal, size);
             case GT_AND:
             case GT_OR: