Use `argIsInvariant` instead of `argNode->OperIsConst()` for inlining observations...
authorSergey Andreenko <seandree@microsoft.com>
Mon, 23 Nov 2020 18:57:27 +0000 (10:57 -0800)
committerGitHub <noreply@github.com>
Mon, 23 Nov 2020 18:57:27 +0000 (10:57 -0800)
commit78adc93ff9fed8d8c92f02fa77dbc9089f4c906b
tree2be66683c54e4e726d30e21b078b95f8bcf6d9f0
parente27401501809a8ba451f4621657908cbb6664493
Use `argIsInvariant` instead of `argNode->OperIsConst()` for inlining observations. (#44790)

* Use `argIsInvariant` instead of `argNode->OperIsConst()`.

* add a small repro test for the current issue.
src/coreclr/src/jit/flowgraph.cpp
src/tests/JIT/Regression/JitBlue/Runtime_43130/Runtime_43130.il [new file with mode: 0644]
src/tests/JIT/Regression/JitBlue/Runtime_43130/Runtime_43130.ilproj [new file with mode: 0644]