Pierre-vh wrote: I suspect the difference is due to the fact that TG now handles the pattern instead of the C++ code. Can you verify by checking if it still works if you remove selectG_FABS/G_FNEG? https://github.com/llvm/llvm-project/pull/81130