-
Enhancement
-
Resolution: Duplicate
-
P4
-
20
-
generic
-
generic
assert_different_registers() uses an O(N**2) algorithm. We can use a RegSet instead.
This has two advantages:
1. It's faster in all but the most trivial cases.
2. It can be fully constant folded, so in cases where all of the arguments are constant no code at all will be generated.
This has two advantages:
1. It's faster in all but the most trivial cases.
2. It can be fully constant folded, so in cases where all of the arguments are constant no code at all will be generated.
- duplicates
-
JDK-8319822 Use a linear-time algorithm for assert_different_registers()
- Resolved