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.
The current naming convention is not a very formal expression. After the revision, both the
CPU name
andCore name
will be represented by theLA64
microarchitecture.The definition of
CPU name
is as follows, which includes the currently knownLA64
microarchitectures, representing the microarchitecture of the current host:The definition of
Core name
is as follows, representing theLA64
microarchitecture related to the instruction set, which reflects the selected optimization type:Among these,
LA64_GENERIC
is related to scalar optimizations;LA264
corresponds toLSX
instruction optimizations; andLA464
corresponds toLASX
instruction optimizations.The core is selected based on the
CPU name
and the instruction set supported by the system.For
LA364
, although it supportsLSX
instructions, it lacks additional extensions. Currently, there is no need for further optimization of the existingLSX
instructions. Therefore, no new core is required, and theLA264
optimization approach can be reused. Similarly, this principle applies toLA664
. This approach has the advantage of reducing compilation time and code size whenDYNAMIC_ARCH=1
is enabled.Taking
3A6000
as an example, itsCPU name
isLA664
, while itsCore name
isLA464
because it shares the same optimization approach asLA464
.The addition of a new
CPU name
is based on the emergence of newLA64
microarchitectures, while a newCore name
is added only when the newLA64
microarchitecture introduces a new instruction set or other significant performance optimizations. This approach helps prevent code bloat while ensuring streamlined and efficient optimization code.