[LLVMdev] RE : RE : Detect if a basicblock is part of a loop

Rinaldini Julien julien.rinaldini at heig-vd.ch
Fri Apr 27 05:30:09 PDT 2012


I got the same code with or without -O0 opt level
It seems that clang default opt level is 0...

Cheers
________________________________________
De : 陳韋任 [chenwj at iis.sinica.edu.tw]
Date d'envoi : vendredi 27 avril 2012 14:14
À : Rinaldini Julien
Cc: llvmdev at cs.uiuc.edu
Objet : Re: [LLVMdev] RE :  Detect if a basicblock is part of a loop

> I'm running opt with my lib on a ir code emmitted by clang: $ clang -emit-llvm -S -o main.ll main.c
> and opt: $ ../build/Release/bin/opt -load ../build/Release/lib/LLVMobfuscationTest.so -flattening -S main.ll -o main.opt.ll

  What's the clang default opt level? Maybe you should use "-O0" explicitly.

Regards,
chenwj

--
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj




More information about the llvm-dev mailing list