Skip to content

Commit a3cc852

Browse files
kxxtV8 LUCI CQ
authored andcommitted
[riscv] avoid cpu probing in li_ptr
CPU probing is an expensive thing to do and we should avoid doing it upon every li_ptr call. Fixes performance regresion bisected in riscv-forks/electron#1 Change-Id: Ib5ff89b2a730e08de6735123ae60adeffe811ed8 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5612950 Commit-Queue: Yahan Lu <[email protected]> Reviewed-by: Yahan Lu <[email protected]> Reviewed-by: Michael Lippautz <[email protected]> Cr-Commit-Position: refs/heads/main@{#94349}
1 parent 3c208b5 commit a3cc852

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ Kevin Gibbons <[email protected]>
183183
Keyhan Vakil <[email protected]>
184184
Kris Selden <[email protected]>
185185
Kyounga Ra <[email protected]>
186+
186187
Loo Rong Jie <[email protected]>
187188
188189
Ludovic Mermod <[email protected]>

src/codegen/riscv/assembler-riscv.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,6 @@ void Assembler::GeneralLi(Register rd, int64_t imm) {
11041104
}
11051105

11061106
void Assembler::li_ptr(Register rd, int64_t imm) {
1107-
base::CPU cpu;
11081107
// Initialize rd with an address
11091108
// Pointers are 48 bits
11101109
// 6 fixed instructions are generated

0 commit comments

Comments
 (0)