================

----------------
nikic wrote:

This looks like a simple missed optimization in InstCombine.

My first thought would be to handle this via foldOpIntoPhi for selects: 
https://github.com/nikic/llvm-project/commit/c7d9b006453275be94894c6afdae5f6c940c1621
 But this isn't quite correct if FMF is involved. Probably better to implement 
a dedicated fold.

https://github.com/llvm/llvm-project/pull/145613
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to