summaryrefslogtreecommitdiff
path: root/src/jit/gentree.h
diff options
context:
space:
mode:
authorAndy Ayers <andya@microsoft.com>2018-09-20 15:02:58 -0700
committerGitHub <noreply@github.com>2018-09-20 15:02:58 -0700
commite30f187cda3767e1c50b870864de8d0eb5f8582a (patch)
tree0f892e999ac2a2bba32b90a95636da4cbab63062 /src/jit/gentree.h
parent4ca5cd260a1c04f74961faccfad3200fe865a249 (diff)
downloadcoreclr-e30f187cda3767e1c50b870864de8d0eb5f8582a.tar.gz
coreclr-e30f187cda3767e1c50b870864de8d0eb5f8582a.tar.bz2
coreclr-e30f187cda3767e1c50b870864de8d0eb5f8582a.zip
JIT: Fix operand evaluation order for GT_INDEX_ADDR (#20047)
We need to evaluate the array operand first, and it's op1. So evaluate in that order, and don't allow reversal. Closes #20040.
Diffstat (limited to 'src/jit/gentree.h')
-rw-r--r--src/jit/gentree.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/jit/gentree.h b/src/jit/gentree.h
index dbb5a75913..5660241c8a 100644
--- a/src/jit/gentree.h
+++ b/src/jit/gentree.h
@@ -4257,8 +4257,7 @@ struct GenTreeIndexAddr : public GenTreeOp
gtFlags |= GTF_INX_RNGCHK;
}
- // REVERSE_OPS is set because we must evaluate the index before the array address.
- gtFlags |= GTF_EXCEPT | GTF_GLOB_REF | GTF_REVERSE_OPS;
+ gtFlags |= GTF_EXCEPT | GTF_GLOB_REF;
}
#if DEBUGGABLE_GENTREE