[llvm-branch-commits] [llvm] [LoongArch] Fold selects sharing operands with binary operations (PR #215520)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Aug 27 05:19:47 PDT 2026


https://github.com/wangleiat commented:

`select-binop-combine.ll` already performs a similar transformation at the IR level. After running `opt -O2`, the resulting code has the same effect as this combine. Do we still need to handle this separately in the backend?

https://github.com/llvm/llvm-project/pull/215520


More information about the llvm-branch-commits mailing list