<div dir="ltr"><div>Hello,</div><div>I m trying to test individual O3 optimizations/ replicating O3 behavior on IR. I took unoptimized IR (O0), used disable-o0-optnone via (<b>clang -O0  -Xclang -disable-O0-optnone</b>). I read somewhere about <b>clang -O1  -Xclang -disable-O0-optnone,</b> so I also tested on this initial IR.</div><div><br></div><div>I have observed by using individual optimizations, the performance (i.e time) is better when the base/initial IR is generated via  <b>clang -O1  -Xclang -disable-O0-optnone</b>. In case of <b>clang -O0  -Xclang -disable-O0-optnone</b> initial IR, the performance is reduced.</div><div><br></div><div>What is the possible reason for this?</div><div><br></div><div>What is the right way?</div><div>Please guide.</div><div>Thank You <br></div></div>