RFR: Disable C2 peephole by default for aarch64

Felix Yang felix.yang at linaro.org
Sat Aug 29 13:13:27 UTC 2015

Hi JIT members,

  Currently, the C2 peephole optimization is only enabled by default for
x86 & aarch64 port.
  But we don't have any peephole rules for aarch64 port, scanning the
instruction stream
  in PhasePeephole::do_transform does not make sense but a waste of time
for this port.
  So I am disabling this pass for aarch64 port by default, can anyone
sponsor this if approved?

diff -r a6acc533dfef src/cpu/aarch64/vm/c2_globals_aarch64.hpp
--- a/src/cpu/aarch64/vm/c2_globals_aarch64.hpp Wed Aug 19 16:16:54 2015
+++ b/src/cpu/aarch64/vm/c2_globals_aarch64.hpp Fri Aug 28 09:28:07 2015
@@ -69,7 +69,7 @@

 // Peephole and CISC spilling both break the graph, and so makes the
 // scheduler sick.
-define_pd_global(bool, OptoPeephole,                 true);
+define_pd_global(bool, OptoPeephole,                 false);
 define_pd_global(bool, UseCISCSpill,                 true);
 define_pd_global(bool, OptoScheduling,               false);
 define_pd_global(bool, OptoBundling,                 false);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-compiler-dev/attachments/20150829/e79362ae/attachment-0001.html>

More information about the hotspot-compiler-dev mailing list