https://github.com/nikic commented: Can you please clarify what the motivation for this is? Did the loss of the transform for the non-undef case cause practical issues somewhere? The impact on llvm-opt-benchmark seems minimal. https://github.com/llvm/llvm-project/pull/171556