hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/spi/LoweringProvider.java
equal
deleted
inserted
replaced
44 * @return a node that gives the index of the element |
44 * @return a node that gives the index of the element |
45 */ |
45 */ |
46 ValueNode reconstructArrayIndex(JavaKind elementKind, AddressNode address); |
46 ValueNode reconstructArrayIndex(JavaKind elementKind, AddressNode address); |
47 |
47 |
48 /** |
48 /** |
49 * Indicates whether the target platform supports comparison of integers of a particular bit |
49 * Indicates the smallest width for comparing an integer value on the target platform. |
50 * width. This check is used by optimizations that might introduce subword compares. |
|
51 */ |
50 */ |
52 default boolean supportSubwordCompare(int bits) { |
51 default Integer smallestCompareWidth() { |
53 // most platforms only support 32 and 64 bit compares |
52 // most platforms only support 32 and 64 bit compares |
54 return bits >= 32; |
53 return 32; |
55 } |
54 } |
56 } |
55 } |