<p>
Hi Xiaolin,
</p>
<p>
<br>
</p>
<p>
I am interested in your new proposal for supporting the RVC extension.
</p>
<p>
Can you provide a simple description of how it works and maybe the new interfaces?
</p>
<p>
I guess developers will need to be aware of this when working on this port.
</p>
<p>
<br>
</p>
<p>
Thanks,
</p>
<p>
Fei
</p>
<p>
<br>
</p>
<blockquote name="replyContent" class="ReferenceQuote" style="padding-left:5px;margin-left:5px;border-left:#b6b6b6 2px solid;margin-right:0;">
-----Original Messages-----<br>
<b>From:</b><span id="rc_from">"Xiaolin Zheng" <yunyao.zxl@alibaba-inc.com></span><br>
<b>Sent Time:</b><span id="rc_senttime">2022-09-08 20:09:59 (Thursday)</span><br>
<b>To:</b> riscv-port-dev <riscv-port-dev-retn@openjdk.org>, "Aleksey Shipilev" <shade@redhat.com>, "riscv-port-dev@openjdk.org" <riscv-port-dev@openjdk.org>, "Vladimir Kempik" <vladimir.kempik@gmail.com><br>
<b>Cc:</b> <br>
<b>Subject:</b> Re: RVC by default?<br>
<br>
<div class="__aliyun_email_body_block">
<div style="line-height:1.7;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;">
<div style="clear:both;">
<span>Hi Aleksey and Vladimir,</span>
</div>
<div style="clear:both;">
<br>
</div>
<div style="clear:both;">
The current RVC support is okay but not complete: it only covers ~10% of total instructions emitted (mostly C2 code, including some part of Stub code), and we might want to transform instructions into the compressed counterparts as much as possible, so maybe the design will change from a whitelist mode (the class CompressibleRegion) to a black list mode. There is one implementation at my local branch <a href="https://github.com/zhengxiaolinX/jdk/commits/REBASE-rvc-beautify" target="_blank">https://github.com/zhengxiaolinX/jdk/commits/REBASE-rvc-beautify</a> (might not be stable yet, I have not gotten enough time to give it a sufficient test on jtregs and specjbb2015/other benchmarks yet). There are plans reserved to commit them (which cover ~20% of instructions under some tests) after reviewing, but this is currently WIP and waiting loom port to merge first.
</div>
</div>
</div>
</blockquote>