Commit 8f99174c authored by Lu Yahan's avatar Lu Yahan Committed by V8 LUCI CQ

[riscv64] Delete unused varible

Change-Id: Id6d8f1224cb59fb55decbd6fef1c8e674ea6de63
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3237328Reviewed-by: 's avatarji qiu <qiuji@iscas.ac.cn>
Commit-Queue: ji qiu <qiuji@iscas.ac.cn>
Auto-Submit: Yahan Lu <yahan@iscas.ac.cn>
Cr-Commit-Position: refs/heads/main@{#77511}
parent 8571eeba
...@@ -3305,12 +3305,10 @@ int Assembler::li_estimate(int64_t imm, bool is_get_temp_reg) { ...@@ -3305,12 +3305,10 @@ int Assembler::li_estimate(int64_t imm, bool is_get_temp_reg) {
// plus the number of zeros between the parts. Each part is added after the // plus the number of zeros between the parts. Each part is added after the
// left shift. // left shift.
uint32_t mask = 0x80000000; uint32_t mask = 0x80000000;
int32_t shift_val = 0;
int32_t i; int32_t i;
for (i = 0; i < 32; i++) { for (i = 0; i < 32; i++) {
if ((low_32 & mask) == 0) { if ((low_32 & mask) == 0) {
mask >>= 1; mask >>= 1;
shift_val++;
if (i == 31) { if (i == 31) {
// rest is zero // rest is zero
count++; count++;
...@@ -3318,21 +3316,17 @@ int Assembler::li_estimate(int64_t imm, bool is_get_temp_reg) { ...@@ -3318,21 +3316,17 @@ int Assembler::li_estimate(int64_t imm, bool is_get_temp_reg) {
continue; continue;
} }
// The first 1 seen // The first 1 seen
int32_t part;
if ((i + 11) < 32) { if ((i + 11) < 32) {
// Pick 11 bits // Pick 11 bits
part = ((uint32_t)(low_32 << i) >> i) >> (32 - (i + 11));
count++; count++;
count++; count++;
i += 10; i += 10;
mask >>= 11; mask >>= 11;
} else { } else {
part = (uint32_t)(low_32 << i) >> i;
count++; count++;
count++; count++;
break; break;
} }
shift_val = 0;
} }
} }
return count; return count;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment