https://github.com/RKSimon commented: Why isn't this done in either dagcombine or the legalizers? I see no need for this to be dumped into the x86 backend https://github.com/llvm/llvm-project/pull/205118