Hi, sometimes llvm/clang generates conditional mov in the code wenn optimization is enabled. Is there a way that I can tell the compiler not to generate cmov instructions? gcc has the -fno-if-conversion and -fno-if-conversion2 for that, but so far I have found not an equivalent in clang. Thanks! Regards, Marc -- Marc Heuse www.mh-sec.de PGP: AF3D 1D4C D810 F0BB 977D 3807 C7EE D0A0 6BE9 F573
Joerg Sonnenberger via llvm-dev
2021-Oct-28 21:07 UTC
[llvm-dev] how to disable cmov generation?
On Thu, Oct 28, 2021 at 04:41:56PM +0200, Marc via llvm-dev wrote:> Hi, > > sometimes llvm/clang generates conditional mov in the code wenn > optimization is enabled. > > Is there a way that I can tell the compiler not to generate cmov > instructions?Why do you want to do that? We intentionally don't have a flag for every single transformation. Joerg