Displaying 1 result from an estimated 1 matches for "_init1".
Did you mean:
_init
2012 Feb 02
0
[LLVMdev] How to improve code generated for 'getelementptr' ?
...ranch instruction has a delay slot
For Init1, the loop body consists of 8 instructions.
For Init2, it consists of 5 instructions which is already much better
(The optimal would use 4 instructions)
Question: how can we teach llvm to provide code like Init2, for input of Init1 ?
---
.text
.globl _Init1
_Init1: ;; @Init1
;; BB#0: ;; %entry
ldi R1 , 0
ldi R2 , 1
ldi R3 , 100
_BB1_1: ;; %for.body
;; =>This Inner Loop Header: Depth=1
mov R4 , R1
add R1 ,...