CR for RFR 8165565
Berg, Michael C
michael.c.berg at intel.com
Wed Sep 7 16:57:45 UTC 2016
Some cases of CountedLoopEnd have side effect code on targets like SKX for vector processed post loops that are unsafe to translate to short branch versions. A recent change between b126 and b127 exposes this problem. The simple solution is to not allow short branch mapping for these cases. This produces correct code. A patch will be uploaded shortly to exemplify this case. The failures show up in SPECjvm2008 in the scimark metrics after b127 inclusive for SKX targets.
This code was tested as follows: hotspot jreg, SPECjvm2008 on bdw and skx complete with no issues.
Essentially it preserves this ad file pattern on x86 by disallowing branch shortening (this instruction pattern is predicate guarded for skx like platforms):
match(CountedLoopEnd cop cr);
__ jcc((Assembler::Condition)($cop$$cmpcode), *L, false);
which has the restore vector mask side effect code.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the hotspot-compiler-dev