[riscv-port] RFR: 8278041: riscv: Use t2 as the dedicated machine flags register in C2 [v2]

Yadong Wang yadongwang at openjdk.java.net
Wed Dec 1 09:35:26 UTC 2021


> There are non-allocatable registers t0 and t1 in C2, frequently used as temporary registers for common code snipptes. Meanwhile, C2 use t1 as the flags register, so that many instructs using t1 as a temporary register must declare the data flow effect of t1 which is not part of a match rule. So we can reserve t2 and use it as the machine flags register in C2 instead, to reduce the probability of misuse of t1 without declaring the data flow effect.

Yadong Wang has updated the pull request incrementally with one additional commit since the last revision:

  8278041: riscv: Use t2 as the dedicated machine flags register in C2(2)

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

Changes:
  - all: https://git.openjdk.java.net/riscv-port/pull/21/files
  - new: https://git.openjdk.java.net/riscv-port/pull/21/files/b073e926..2e01c8a4

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=riscv-port&pr=21&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=riscv-port&pr=21&range=00-01

  Stats: 48 lines in 1 file changed: 0 ins; 31 del; 17 mod
  Patch: https://git.openjdk.java.net/riscv-port/pull/21.diff
  Fetch: git fetch https://git.openjdk.java.net/riscv-port pull/21/head:pull/21

PR: https://git.openjdk.java.net/riscv-port/pull/21


More information about the riscv-port-dev mailing list