ksh-3.2$ clang -c -foptimization-record-file=t1.opt -fopenmp -emit-llvm test.c ksh-3.2$ ls -al t1.opt -rw-rw-rw- 1 zahiraam Domain Users 16871 2019-11-14 08:56 t1.opt ksh-3.2$ rm t1.opt ksh-3.2$ clang -c -foptimization-record-file=t1.opt -fopenmp test.bc ksh-3.2$ ls -al t1.opt ls: cannot access t1.opt: No such file or directory ksh-3.2$
t1.opt is not generated when we compile t1.bc.