[llvm] [CVP] Propagate constant range on icmp at use level (PR #73767)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 14 22:03:23 PST 2023


================
@@ -87,6 +87,11 @@ namespace llvm {
     Tristate getPredicateAt(unsigned Pred, Value *LHS, Value *RHS,
                             Instruction *CxtI, bool UseBlockValue);
 
+    /// Determine whether the specified value comparison is known to be true
+    /// or false at the specified use-site.
+    /// \p Pred is a CmpInst predicate.
+    Tristate getPredicateAtUse(unsigned P, const Use &LHS, const Use &RHS);
----------------
dtcxzyw wrote:

```suggestion
    Tristate getPredicateAtUse(unsigned Pred, const Use &LHS, const Use &RHS);
```

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


More information about the llvm-commits mailing list