RFR: 8322490: cleanup CastNode construction [v5]

Joshua Cao duke at openjdk.org
Fri Dec 22 19:09:59 UTC 2023


> It is a common pattern to have:
> 
> 
> Node* n = new CastNode(...);
> n->set_req(control_node);
> 
> 
> We can modify the constructor to set the control node. It makes the code a little tidier.
> 
> Passes tier1 locally on my Linux machine

Joshua Cao has updated the pull request incrementally with one additional commit since the last revision:

  Fix asterisk formatting

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/17162/files
  - new: https://git.openjdk.org/jdk/pull/17162/files/574617ef..d3bd0b85

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=17162&range=04
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17162&range=03-04

  Stats: 5 lines in 4 files changed: 0 ins; 0 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/17162.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17162/head:pull/17162

PR: https://git.openjdk.org/jdk/pull/17162


More information about the hotspot-compiler-dev mailing list