Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix STRESS_64RSLT_MUL stress mode to avoid creating unnecessary IR
Issue dotnet#77152 is an assert in unoptimized code where the IR constructs an addressing mode from a tree including a GT_MUL with op2 of zero, hence it ignores op1, but then asserts because it only expects a limited set of IR nodes to be in the op1 tree. This fixes this one particular case by avoiding creating the extra nodes in this stress mode. In normal optimized code, the MUL with zero would be folded. Fixes dotnet#77152
- Loading branch information