Add POWER10 optimization (WIP)#391
Closed
runlevel5 wants to merge 1 commit into
Closed
Conversation
Gated behind USE_ISA_3_1 (-mcpu=power10). Each prefixed instruction is emitted as a stable 12-byte block to keep per-pass code size deterministic across the existing multi-pass compile. - pli in emit_MOVi64 for values that fit signed 34 bits but not signed 32 - paddi in mov_rx_local and emit_CheckJump long-offset paths - plbz/plhz/plwz/plfs/pstb/psth/pstw/pstfs in OP_LOAD/OP_STORE long-offset paths (no temp register needed) Encoding cross-checked byte-for-byte against GNU as -mpower10. Builds clean at -mcpu=power8/9/10 on ppc64le.
Contributor
Author
|
Dropped because after thorough testing the gain is too marginal. In some cases it is even worse. |
Owner
How did you measured gains - by size/performance? |
Contributor
Author
|
Yes I have benchmarked (built with GCC, clang and IBM XL C/C++ compiler). Some iterations get like 1.4% +/- 0.5, and some cases I see regression. On POWER10 with -O3 and fastmath option, the compiler aggressively optimize the codes to the point our hand-rolled assembly does not do justice. I also experimented a bit with IBM MASS library, again the gain is too marginal, it's not worth the additional complexity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Being tested by PPC community testers. Please refrain from reviewing it