summaryrefslogtreecommitdiff
path: root/test/MultiDexModifiedSecondary/Second.java
diff options
context:
space:
mode:
authorSerban Constantinescu <serban.constantinescu@arm.com>2015-02-22 22:08:01 +0000
committerSerban Constantinescu <serban.constantinescu@arm.com>2015-03-17 10:47:51 +0000
commit2d35d9d7490ef3880ee366ccbf8f6e791f398c47 (patch)
tree5e512b5da7d7c290d69e4437436feb15ccad5ffc /test/MultiDexModifiedSecondary/Second.java
parent8fff8c66738b35bafc5318e408afa21c34c57ff3 (diff)
Opt Compiler: Materialise constants that cannot be encoded
The VIXL MacroAssembler deals gracefully with any immediate. However when the constant has multiple uses and cannot be encoded in the instruction's immediate field we are better off using a register for the constant and thus sharing the constant generation between multiple uses. Eg: var += #Const; // #Const cannot be encoded. var += #Const; Before: After: mov wip0, #Const mov w4, #Const add w0, w0, wip0 add w0, w0, w4 mov wip0, #Const add w0, w0, w4 add w0, w0, wip0 Change-Id: Ied8577c879845777e52867aced16b2b45e06ac6c Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
Diffstat (limited to 'test/MultiDexModifiedSecondary/Second.java')
0 files changed, 0 insertions, 0 deletions