RFR: 8326135: Enhance adlc to report unused operands [v3]

kuaiwei duke at openjdk.org
Thu Feb 29 10:08:59 UTC 2024


On Wed, 28 Feb 2024 17:50:55 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:

>> @vnkozlov @iwanowww Can you help sponsor it? Thanks.
>
> @kuaiwei  I see new warnings when I build on AVX2 machine (no AVX512) with these changes.
> I filed [JDK-8326983](https://bugs.openjdk.org/browse/JDK-8326983). Please look.

@vnkozlov My openjdk account has some problem and I can not update JBS issue. So I update my test result here.
In my testing on machine with AVX512, it report the same warning operands.

Warning: unused operand (immI_32)
Warning: unused operand (immI_64)
Warning: unused operand (immL10)
Warning: unused operand (immL_127)
Warning: unused operand (kReg_K1)
Warning: unused operand (kReg_K2)
Warning: unused operand (kReg_K3)
Warning: unused operand (kReg_K4)
Warning: unused operand (kReg_K5)
Warning: unused operand (kReg_K6)
Warning: unused operand (kReg_K7)
Warning: unused operand (no_rax_rbx_RegP)
-------Warning: total 12 unused operands

The adlc doesn't use machine specific feature to compile ad file. So it should has same behavior. There operands are real useless and can be cleaned. I will open a new issue to follow it. But I need fix my account issue first. :<

-------------

PR Comment: https://git.openjdk.org/jdk/pull/17910#issuecomment-1970803742


More information about the hotspot-compiler-dev mailing list