-
Darius M authored
CL https://chromium-review.googlesource.com/c/v8/v8/+/3514072 tried to improve code generation for patterns like "x >> n == k" when n and k are constant, and to generate instead "x == k << n" (with "k << n" being computed at compile time). However, this was also done when "x >> n" was reused later, which caused "x" to be kept alive longer that it could have, which could increase register pressure. This CL thus ensures that this optimization is done only if "x >> n" has a single use. Bug: chromium:1305389 Change-Id: I377e120c4825e2a0deb4a5478138da838bcebc77 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3528987Reviewed-by: Tobias Tebbi <tebbi@chromium.org> Commit-Queue: Darius Mercadier <dmercadier@chromium.org> Cr-Commit-Position: refs/heads/main@{#79502}
1d99ca6c