diff options
author | Andreas Klebinger <klebinger.andreas@gmx.at> | 2020-04-15 21:52:13 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-05-21 12:14:25 -0400 |
commit | edc2cc588add3f23b3650f15d3f495943f2c06f9 (patch) | |
tree | e54eaa319ccc85178df2452369e7a6d1874f6056 /docs/users_guide/compare-flags.py | |
parent | 13f6c9d0376214b22d4cd16bd3a8cd7b8d864990 (diff) | |
download | haskell-edc2cc588add3f23b3650f15d3f495943f2c06f9.tar.gz |
NCG: Codelayout: Distinguish conditional and other branches.
In #18053 we ended up with a suboptimal code layout because
the code layout algorithm didn't distinguish between conditional
and unconditional control flow.
We can completely eliminate unconditional control flow instructions
by placing blocks next to each other, not so much for conditionals.
In terms of implementation we simply give conditional branches less
weight before computing the layout.
Fixes #18053
Diffstat (limited to 'docs/users_guide/compare-flags.py')
0 files changed, 0 insertions, 0 deletions