llvm-project
llvm-project copied to clipboard
[InstCombine] Don't reassociate select if already logical
The intent of the fold was to convert two selects into a logical and/or and a select. However, it also ends up reassociating two logical and/ors.
Fixes https://github.com/llvm/llvm-project/issues/172591.