diff --git a/src/coreclr/jit/gentree.cpp b/src/coreclr/jit/gentree.cpp index 7c0f79288f5226..d7edce8f13eeab 100644 --- a/src/coreclr/jit/gentree.cpp +++ b/src/coreclr/jit/gentree.cpp @@ -2519,13 +2519,6 @@ unsigned Compiler::gtSetMultiOpOrder(GenTreeMultiOp* multiOp) bool canSwap = multiOp->IsReverseOp() ? gtCanSwapOrder(multiOp->Op(2), multiOp->Op(1)) : gtCanSwapOrder(multiOp->Op(1), multiOp->Op(2)); - // The InitN intrinsic for two operands used to be not reversible, so preserve this. - // TODO-List-Cleanup: delete this only-needed-for-zero-diffs quirk. - if (multiOp->OperIs(GT_SIMD) && (multiOp->AsSIMD()->GetSIMDIntrinsicId() == SIMDIntrinsicInitN)) - { - canSwap = false; - } - if (canSwap) { if (multiOp->IsReverseOp()) diff --git a/src/coreclr/jit/valuenum.cpp b/src/coreclr/jit/valuenum.cpp index af8d3752199176..f91e43ba470435 100644 --- a/src/coreclr/jit/valuenum.cpp +++ b/src/coreclr/jit/valuenum.cpp @@ -9464,9 +9464,7 @@ void Compiler::fgValueNumberSimd(GenTreeSIMD* tree) excSetPair = ValueNumStore::VNPForEmptyExcSet(); normalPair = vnStore->VNPairForFunc(tree->TypeGet(), simdFunc); } - // TODO-List-Cleanup: the "tree->GetSIMDIntrinsicId() == SIMDIntrinsicInitN" case is a quirk - // to get zero diffs - Vector2(float, float) was imported with lists - remove it. - else if ((tree->GetOperandCount() > 2) || (tree->GetSIMDIntrinsicId() == SIMDIntrinsicInitN)) + else if (tree->GetOperandCount() > 2) { // We have a SIMD node with 3 or more args. To retain the // previous behavior, we will generate a unique VN for this case.