diff options
author | FICTURE7 <FICTURE7@gmail.com> | 2020-09-20 03:00:24 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-19 20:00:24 -0300 |
commit | f60033e0aaf546d7f56a4925b5aeec76709fb851 (patch) | |
tree | af6585403754a771dbab824b1739322ef04b3cd8 /ARMeilleure/Instructions/InstEmitFlowHelper.cs | |
parent | 1eea35554c7505dbf521cf9f3cfeeaa0fc7e916f (diff) |
Implement block placement (#1549)
* Implement block placement
Implement a simple pass which re-orders cold blocks at the end of the
list of blocks in the CFG.
* Set PPTC version
* Use Array.Resize
Address gdkchan's feedback
Diffstat (limited to 'ARMeilleure/Instructions/InstEmitFlowHelper.cs')
-rw-r--r-- | ARMeilleure/Instructions/InstEmitFlowHelper.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ARMeilleure/Instructions/InstEmitFlowHelper.cs b/ARMeilleure/Instructions/InstEmitFlowHelper.cs index 87549aa3..f5f228f5 100644 --- a/ARMeilleure/Instructions/InstEmitFlowHelper.cs +++ b/ARMeilleure/Instructions/InstEmitFlowHelper.cs @@ -174,7 +174,7 @@ namespace ARMeilleure.Instructions Operand lblContinue = context.GetLabel(nextAddr.Value); // We need to clear out the call flag for the return address before comparing it. - context.BranchIf(lblContinue, context.BitwiseAnd(returnAddress, Const(~CallFlag)), nextAddr, Comparison.Equal); + context.BranchIf(lblContinue, context.BitwiseAnd(returnAddress, Const(~CallFlag)), nextAddr, Comparison.Equal, BasicBlockFrequency.Cold); context.Return(returnAddress); } |