Forbid LEA without index AND base.#10771
Conversation
0f5d7a2 to
c619b68
Compare
|
PTAL @dotnet/jit-contrib |
|
@dotnet-bot test tizen armel Cross Debug Build |
|
@sandreenko it seems odd that we are seeing an address tree of the form that you've described, especially if this occurs only on CoreRT. Are we sure that the base should be a compile-time constant that isn't a relocatable handle (which would not be constant-foldable)? |
|
It is not connected with CoreRT, it is RyuJit x86 problem.
|
|
(3) is my preferred solution, as it is minimally invasive and does not change the semantics of |
|
I'm a bit confused about your suggestions. For 1, are you suggesting having |
|
@dotnet-bot test OSX10.12 x64 Checked Build and Test (network) |
c619b68 to
855eede
Compare
|
PR was updated. Please look again. |
GT_LEA could have null op1 and null op2. There is no check that at least one operator is presented during a creation process.
This case was not reflected in GenTreeUseEdgeIterator.
It caused an assert failure on a test with a static pinned array.
It required minopts to prevent constant folding during Value numbering.
Fix DevDiv 400702. I spent some time but was not able to create a small repro for it.