< prev index next >

src/cpu/ppc/vm/ppc.ad

Print this page
rev 10974 : 8155729: C2: Skip transformation of LoadConP for heap-based compressed oops
Reviewed-by:

@@ -2185,10 +2185,20 @@
   assert(UseCompressedClassPointers, "only for compressed klass code");
   // TODO: PPC port if (MatchDecodeNodes) return true;
   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
 // register first, so they would do better to copy the constant from stack.
 const bool Matcher::rematerialize_float_constants = false;
< prev index next >