1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

[AArch64] Add a comment to make it explicit why we increased the complexity.

Follow-up of r233653.

llvm-svn: 233936
This commit is contained in:
Quentin Colombet 2015-04-02 18:54:23 +00:00
parent c17be4ec1a
commit fcd49dac2f

View File

@ -1637,6 +1637,10 @@ multiclass AddSub<bit isSub, string mnemonic,
SDPatternOperator OpNode = null_frag> {
let hasSideEffects = 0, isReMaterializable = 1, isAsCheapAsAMove = 1 in {
// Add/Subtract immediate
// Increase the weight of the immediate variant to try to match it before
// the extended register variant.
// We used to match the register variant before the immediate when the
// register argument could be implicitly zero-extended.
let AddedComplexity = 6 in
def Wri : BaseAddSubImm<isSub, 0, GPR32sp, GPR32sp, addsub_shifted_imm32,
mnemonic, OpNode> {