Displaying 4 results from an estimated 4 matches for "very_big".
2011 Jan 27
2
[LLVMdev] recreate optimized clang output
...o get LTO optimizations ?
> See http://llvm.org/docs/LinkTimeOptimization.html
> http://llvm.org/docs/GoldPlugin.html
> On Mac OS X, it is a checkbox in Xcode.
> -
> Devang
My backend doesnt supply lto :( I am trying to emulate lto like this:
clang *.c -S -emit-llvm
cat *.ll > very_big.ll
opt -O3 -extra-things...
llc very_big.ll.optimized
('Ease of use' is not so important :)
Best, Patrick
2011 Jan 27
0
[LLVMdev] recreate optimized clang output
...cs/GoldPlugin.html
>> On Mac OS X, it is a checkbox in Xcode.
>> -
>> Devang
>
> My backend doesnt supply lto :( I am trying to emulate lto like this:
The backend (or code generator) does not do LTO in this case also.
>
> clang *.c -S -emit-llvm
> cat *.ll > very_big.ll
> opt -O3 -extra-things...
> llc very_big.ll.optimized
Try replacing "cat *.ll > very_big.ll" with "llvm-ld *.ll -o big.bc". 'llvm-ld' is another llvm tool, just like 'opt'
-
Devang
-------------- next part --------------
An HTML attachment was scru...
2011 Jan 27
0
[LLVMdev] recreate optimized clang output
On Jan 27, 2011, at 12:02 PM, Hendrix_ at gmx.net wrote:
> OK, I am looking for "LTO"/global optimization. So the function definition will remain "somewhere else" (externally), and the optimizer will find in some other module to possibly inline it later on.
>
> I am planning to concat all the *.ll (eg "link" the files) and pass them to the
2011 Jan 27
4
[LLVMdev] recreate optimized clang output
On 26.01.2011, at 04:39, John McCall wrote:
> On Jan 24, 2011, at 10:36 AM, Hendrix_ at gmx.net wrote:
>> I was using "clang -O3 -S -emit-llvm" got some very optimized output.
>>
>> Then I did "clang -S -emit-llvm" (without optimization) and wanted to optimized the code in a
>> separate pass. The llvm program "opt" did not do anything.