================ ---------------- jayfoad wrote: The only way to make it less fragile is to add a predicate to the regular fcanonicalize -> v_max patterns, so that they are only used when it is safe to do so. https://github.com/llvm/llvm-project/pull/175867