[llvm-dev] Difference between clang -O1 -Xclang -disable-O0-optnone and clang -O0 -Xclang -disable-O0-optnone in LLVM 9
hameeza ahmed via llvm-dev
llvm-dev at lists.llvm.org
Wed Nov 13 01:02:29 PST 2019
I m trying to test individual O3 optimizations/ replicating O3 behavior on
IR. I took unoptimized IR (O0), used disable-o0-optnone via (*clang -O0
-Xclang -disable-O0-optnone*). I read somewhere about *clang -O1 -Xclang
-disable-O0-optnone,* so I also tested on this initial IR.
I have observed by using individual optimizations, the performance (i.e
time) is better when the base/initial IR is generated via *clang -O1
-Xclang -disable-O0-optnone*. In case of *clang -O0 -Xclang
-disable-O0-optnone* initial IR, the performance is reduced.
What is the possible reason for this?
What is the right way?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev