hotspot/src/cpu/ppc/vm/ppc.ad
changeset 41673 e8b3ccb2cfcf
parent 39444 2eae9b74c1f3
child 41685 7df85c88cdc0
--- a/hotspot/src/cpu/ppc/vm/ppc.ad	Tue Oct 04 21:21:10 2016 +0300
+++ b/hotspot/src/cpu/ppc/vm/ppc.ad	Fri Apr 29 15:23:15 2016 +0200
@@ -2166,6 +2166,16 @@
   return false;
 }
 
+bool Matcher::const_oop_prefer_decode() {
+  // Prefer ConN+DecodeN over ConP in simple compressed oops mode.
+  return Universe::narrow_oop_base() == NULL;
+}
+
+bool Matcher::const_klass_prefer_decode() {
+  // Prefer ConNKlass+DecodeNKlass over ConP in simple compressed klass mode.
+  return Universe::narrow_klass_base() == NULL;
+}
+
 // Is it better to copy float constants, or load them directly from memory?
 // Intel can load a float constant from a direct address, requiring no
 // extra registers. Most RISCs will have to materialize an address into a