Integrated: 8278471: Remove unreached rules in AddNode::IdealIL

Zhiqiang Zang duke at openjdk.java.net
Thu Dec 16 04:01:07 UTC 2021


On Tue, 7 Dec 2021 23:34:06 GMT, Zhiqiang Zang <duke at openjdk.java.net> wrote:

> Reorder optimizations in addnode so special cases appear before general cases; otherwise the special cases would be never covered.
> 
> `(a - b) + (c - d)` subsumes both `(a - b) + (b - c)` and `(a - b) + (c - a)`. Therefore `(a - b) + (b - c)` and `(a - b) + (c - a)` have to be placed before `(a - b) + (c - d)` so that they can work.

This pull request has now been integrated.

Changeset: f6fbb5a8
Author:    Zhiqiang Zang <zhiqiang.zang at utexas.edu>
Committer: Jie Fu <jiefu at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/f6fbb5a80cfe630e76917397d21649709485d31d
Stats:     96 lines in 4 files changed: 86 ins; 10 del; 0 mod

8278471: Remove unreached rules in AddNode::IdealIL

Reviewed-by: jiefu, kvn

-------------

PR: https://git.openjdk.java.net/jdk/pull/6752


More information about the hotspot-compiler-dev mailing list