[llvm-dev] A question on opt command vs clang command
Kavindu Gimhan Zoysa via llvm-dev
llvm-dev at lists.llvm.org
Sat Sep 18 06:47:14 PDT 2021
As far as I know, running *clang -O2 -S* after *opt -O2* is doing more
optimizations more than *llc -O2*. My problem is that will this cause to
crash the code?
Kavindu Gimhan Zoysa,
BSc(Hons) | ENTC | UoM,
ATL | WSO2
GitHub <https://github.com/KavinduZoysa> LinkedIn
<https://www.linkedin.com/in/kavindu-gimhan-zoysa-85939a122/> Medium
<https://medium.com/@kavindugimhanzoysa>
On Mon, 13 Sept 2021 at 10:36, Min-Yih Hsu <minyihh at uci.edu> wrote:
>
> You can also run llc to generate native assembly file
>
> -Min
> On Sun, Sep 12, 2021 at 10:05 Kavindu Gimhan Zoysa via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>> Hi all,
>>
>> Is it a best practice to run *clang -O2 -S *after *opt -O2 to *generate
>> the .s file?
>>
>> Thank you,
>> Kavindu
>>
>> Kavindu Gimhan Zoysa,
>> BSc(Hons) | ENTC | UoM,
>> ATL | WSO2
>>
>> GitHub <https://github.com/KavinduZoysa> LinkedIn
>> <https://www.linkedin.com/in/kavindu-gimhan-zoysa-85939a122/> Medium
>> <https://medium.com/@kavindugimhanzoysa>
>> _______________________________________________
>> LLVM Developers mailing list
>> llvm-dev at lists.llvm.org
>> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>>
> --
> Min-Yih Hsu
> Ph.D Student in ICS Department, University of California, Irvine (UCI).
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210918/78a93a3c/attachment.html>
More information about the llvm-dev
mailing list