[llvm] [ValueTracking] Expand cmpExcludesZero to optionally work with non-constant RHS (PR #69364)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 19 05:33:22 PDT 2023


================
@@ -562,25 +564,37 @@ static bool cmpExcludesZero(CmpInst::Predicate Pred, const Value *RHS) {
     return match(RHS, m_Zero());
 
   // All other predicates - rely on generic ConstantRange handling.
+
----------------
dtcxzyw wrote:

Drop the newline here.

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


More information about the llvm-commits mailing list