x86 review fixes

This commit is contained in:
Andrew Haley 2026-07-16 12:05:44 +01:00
parent 7bb4b0d6e3
commit 09f6af58df
2 changed files with 2 additions and 2 deletions

View File

@ -1464,8 +1464,8 @@ void LIR_Assembler::emit_opTypeCheck(LIR_OpTypeCheck* op) {
Label* success_target = &done;
Label* failure_target = stub->entry();
__ testptr(value, value);
if (op->should_profile()) {
__ testptr(value, value);
Label not_null;
Register mdo = klass_RInfo;
__ mov_metadata(mdo, md->constant_encoding());

View File

@ -275,7 +275,7 @@ void C1_MacroAssembler::step_random(Register state, Register temp) {
/* CRC used as a pseudo-random-number generator */
// In effect, the CRC instruction is being used here for its
// linear feedback shift register.
movl(temp, 0);
xorl(temp, temp);
crc32(state, temp, /*sizeInBytes*/2);
} else {
/* LCG by Marsaglia. From Karl Entacher,