Integrated: 8278114: New addnode ideal optimization: converting "x + x" into "x << 1"
Zhiqiang Zang
duke at openjdk.java.net
Wed Jan 5 00:42:27 UTC 2022
On Thu, 2 Dec 2021 15:20:08 GMT, Zhiqiang Zang <duke at openjdk.java.net> wrote:
> A new ideal optimization can be introduced for addnode: converting "x + x" into "x << 1".
>
>
> // Convert "x + x" into "x << 1"
> if (in1 == in2) {
> return new LShiftINode(in1, phase->intcon(1));
> }
This pull request has now been integrated.
Changeset: f3263053
Author: Zhiqiang Zang <zhiqiang.zang at utexas.edu>
Committer: Vladimir Kozlov <kvn at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/f3263053963451637258f9d318e7b93b79fcce54
Stats: 272 lines in 4 files changed: 263 ins; 0 del; 9 mod
8278114: New addnode ideal optimization: converting "x + x" into "x << 1"
Reviewed-by: kvn, redestad
-------------
PR: https://git.openjdk.java.net/jdk/pull/6675
More information about the hotspot-compiler-dev
mailing list