[x64] Narrow operand for comparing WordAnd with a constant
In x64, the result of WordAnd with a positive integer constant is known to be sign(zero)-extended. Comparing this result with another positive integer constant can have narrowed op according to the value of the constants. This CL do this narrow for WordAnd. It also makes the narrow in Word comparison to deal with X64Cmp and X64Test. Bug: v8:12650 Change-Id: I77f4ada9a9f94d78b3a78911e279a647c561cce4 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3462081Reviewed-by: Nico Hartmann <nicohartmann@chromium.org> Commit-Queue: Hao A Xu <hao.a.xu@intel.com> Cr-Commit-Position: refs/heads/main@{#79361}
Showing
Please
register
or
sign in
to comment