paulwalker-arm wrote: Can you share where you are seeing this? I'm trying to gauge whether this is something that can be caught at the IR level or early DAG because post legalised DAG seems a little late to recognise an inverted compare. https://github.com/llvm/llvm-project/pull/206931