heuristic used in LirGenerator.emitSwitch

Venkatachalam, Vasanth Vasanth.Venkatachalam at amd.com
Tue Nov 5 13:50:57 PST 2013


Can someone explain the reasons behind the heuristic that Graal uses (in LIRGenerator.emitSwitch() ) to decide which of the switch statement implementations (sequential switch, table switch) should be used for a given target platform?
Is there a way to adapt this heuristic in cases where the target platform may favor one implementation over the other?

Vasanth


More information about the graal-dev mailing list