From bd32cdb5ae1e581d8b9aaceaae97075f675abf7d Mon Sep 17 00:00:00 2001 From: Egor Chesakov Date: Tue, 28 Aug 2018 18:24:22 -0700 Subject: [PATCH] Do not Constant-Prop immediate values that require relocation on ARM32 --- src/jit/assertionprop.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/jit/assertionprop.cpp b/src/jit/assertionprop.cpp index b34e520..5e00ef9 100644 --- a/src/jit/assertionprop.cpp +++ b/src/jit/assertionprop.cpp @@ -1109,6 +1109,11 @@ AssertionIndex Compiler::optCreateAssertion(GenTree* op1, if (op2->gtOper == GT_CNS_INT) { #ifdef _TARGET_ARM_ + // Do not Constant-Prop immediate values that require relocation + if (op2->gtIntCon.ImmedValNeedsReloc(this)) + { + goto DONE_ASSERTION; + } // Do not Constant-Prop large constants for ARM if (!codeGen->validImmForMov(op2->gtIntCon.gtIconVal)) { -- 2.7.4