Skip to content

Commit f6b10ab

Browse files
committed
Push constants right more frequently
1 parent 805d59a commit f6b10ab

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/coreclr/jit/gentree.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14966,6 +14966,11 @@ GenTree* Compiler::gtFoldExpr(GenTree* tree)
1496614966
return tree;
1496714967
}
1496814968

14969+
if (tree->OperIsCommutative() || tree->OperIsCompare())
14970+
{
14971+
fgPushConstantsRight(tree);
14972+
}
14973+
1496914974
if (!opts.Tier0OptimizationEnabled())
1497014975
{
1497114976
return tree;

0 commit comments

Comments
 (0)