Displaying 5 results from an estimated 5 matches for "optdi".
Did you mean:
optdir
2010 Jan 08
4
[LLVMdev] Inlining
...retty neat
> machine-code and object-file optimizations, but it does not apply
> high-level optimizations like CSE or inlining. 'opt' is the tool
> which does IR-to-IR optimization.
A vital clue, but I'm still not getting it:
---
gemini:~/Projects/Nil/nil(0)$ make testInline.optdis.ll
llvm-as testInline.ll
opt -always-inline testInline.bc -o testInline.optbc
llvm-dis -f testInline.optbc -o testInline.optdis.ll
rm testInline.bc testInline.optbc
gemini:~/Projects/Nil/nil(0)$ cat testInline.optdis.ll
; ModuleID = 'testInline.optbc'
define linkonce fastcc i32 @foo(i32 %...
2010 Jan 09
0
[LLVMdev] Inlining
...optimizations, but it does not apply
>> high-level optimizations like CSE or inlining. 'opt' is the tool
>> which does IR-to-IR optimization.
>>
>
> A vital clue, but I'm still not getting it:
>
> ---
> gemini:~/Projects/Nil/nil(0)$ make testInline.optdis.ll
> llvm-as testInline.ll
> opt -always-inline testInline.bc -o testInline.optbc
> llvm-dis -f testInline.optbc -o testInline.optdis.ll
> rm testInline.bc testInline.optbc
> gemini:~/Projects/Nil/nil(0)$ cat testInline.optdis.ll
> ; ModuleID = 'testInline.optbc'
>
>...
2010 Jan 08
0
[LLVMdev] Inlining
On Jan 8, 2010, at 1:52 PM, Dustin Laurence wrote:
> gemini:~/Projects/Nil/nil(0)$ make testInline.s testInline
> llvm-as testInline.ll
> llc -O3 -f testInline.bc
'llc' is an IR-to-assembly compiler; at -O3 it does some pretty neat machine-code and object-file optimizations, but it does not apply high-level optimizations like CSE or inlining. 'opt' is the tool which
2010 Jan 08
4
[LLVMdev] Inlining
OK, I wanted to understand function inlining in LLVM but had avoided
going to the effort of finding out if the inlining was really happening.
The advice I got to "use the assembly source, Luke" suggested I go
ahead and investigate inlining for a bit of practice, since (so I
figured) even a monkey with really weak x86-fu could tell whether a
function call was happening or not.
If this
2010 Jan 09
2
[LLVMdev] Inlining
On 01/08/2010 09:17 PM, Nick Lewycky wrote:
> Try using 'internal' linkage instead of 'linkonce'.
That did it, thanks.
---
gemini:~/Projects/LLVM/Tests/Inline(0)$ cat testInline.optdis.ll
; ModuleID = 'testInline.optbc'
define i32 @main(i32 %argc, i8** nocapture %argv) nounwind readnone {
ret i32 42
}
gemini:~/Projects/LLVM/Tests/Inline(0)$
---
> If you're sure you
> really want linkonce then you'd need to use linkonce_odr to get inlining
> here.
I&...