craig.topper added inline comments.

================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp:2613
 
+  if (Value *V = foldOrOfCtpop(LHS, RHS, Builder))
+    return V;
----------------
Should we also handle the opposite version `ctpop(x) != 1 && x != 0`?


================
Comment at: llvm/test/Transforms/InstCombine/icmp-or.ll:399
+  ret i1 %5
+}
----------------
Can you add a vector test as well?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122077/new/

https://reviews.llvm.org/D122077

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to