Mercurial > hg > graal-jvmci-8
changeset 22571:8dddd3b5ff37
Remove unnecessary toStackKind conversion.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Thu, 17 Sep 2015 13:52:48 +0200 |
parents | 425950fdcccb |
children | c3b49e9d0f48 |
files | jvmci/jdk.internal.jvmci.meta/src/jdk/internal/jvmci/meta/LIRKind.java |
diffstat | 1 files changed, 1 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/jvmci/jdk.internal.jvmci.meta/src/jdk/internal/jvmci/meta/LIRKind.java Thu Sep 17 10:27:23 2015 +0200 +++ b/jvmci/jdk.internal.jvmci.meta/src/jdk/internal/jvmci/meta/LIRKind.java Thu Sep 17 13:52:48 2015 +0200 @@ -431,21 +431,9 @@ if (src.equals(dst)) { return true; } - /* - * TODO(je,rs) What we actually want is toStackKind(src.getPlatformKind()).equals( - * dst.getPlatformKind()) but due to the handling of sub-integer at the current point - * (phi-)moves from e.g. integer to short can happen. Therefore we compare stack kinds. - */ - if (toStackKind(src.getPlatformKind()).equals(toStackKind(dst.getPlatformKind()))) { + if (src.getPlatformKind().equals(dst.getPlatformKind())) { return !src.isUnknownReference() || dst.isUnknownReference(); } return false; } - - private static PlatformKind toStackKind(PlatformKind platformKind) { - if (platformKind instanceof JavaKind) { - return ((JavaKind) platformKind).getStackKind(); - } - return platformKind; - } }