[llvm] [InstCombine] Make the `(icmp eq/ne (and X, Y), X)` canonicalization work for non-const operands (PR #84688)

via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 22 09:58:46 PDT 2024


================
@@ -238,9 +238,9 @@ define i1 @icmp_sle_negx_y_fail_maybe_zero(i8 %x, i8 %y) {
 
 define i1 @icmp_eq_x_invertable_y_todo(i8 %x, i1 %y) {
----------------
goldsteinn wrote:

Oh no, these are from before we had `isFreeToInvert...`
This is from a year-old series (where `isFreeToInvert...` was later on).

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


More information about the llvm-commits mailing list