lukel97 wrote: > Can you please also add a regression test for miscompile in the earlier version? It should be possible with input IR Added tests for the combine in various commuted forms in cfb2eab54d060d1c9de741e065376f795d5679a2 https://github.com/llvm/llvm-project/pull/213219