We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fca081 commit 0ef01c2Copy full SHA for 0ef01c2
src/coreclr/jit/morph.cpp
@@ -11208,6 +11208,11 @@ GenTree* Compiler::fgOptimizeHWIntrinsic(GenTreeHWIntrinsic* node)
11208
}
11209
11210
11211
+ if (!fgGlobalMorph)
11212
+ {
11213
+ return node;
11214
+ }
11215
+
11216
switch (oper)
11217
{
11218
case GT_ADD:
@@ -11359,7 +11364,7 @@ GenTree* Compiler::fgOptimizeCommutativeArithmetic(GenTreeOp* tree)
11359
11364
11360
11365
// TODO-Review: We used to assert here that "(!op2->OperIsConst() || !opts.OptEnabled(CLFLG_CONSTANTFOLD))".
11361
11366
// This may indicate a missed "remorph". Task is to re-enable this assertion and investigate.
11362
-
11367
+ std::swap(tree->gtOp1, tree->gtOp2);
11363
11368
11369
11370
if (fgOperIsBitwiseRotationRoot(tree->OperGet()))
0 commit comments