As at each BB's begining, we already checked whether all channels are inactive,
we don't really need to do this duplicate checking at the end of forward jump.
This patch get about 25% performance gain for the luxmark's median scene.
Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
if (nextLabel == jip) return;
+ // As at each BB's begining, we already checked whether all channels are inactive,
+ // we don't really need to do this duplicate checking at the end of forward jump.
+ // Just comment out the following code, and may be deleted in the future.
+#if 0
// It is slightly more complicated than for backward jump. We check that
// all PcIPs are greater than the next block IP to be sure that we can
// jump
sel.JMPI(GenRegister::immd(0), jip);
sel.pop();
+#endif
} else {
// Update the PcIPs