================ @@ -3124,6 +3124,19 @@ inline auto m_c_LogicalOp(const LHS &L, const RHS &R) { return m_LogicalOp<LHS, RHS, /*Commutable=*/true>(L, R); } +struct GuaranteedNotToBeUndefOrPoison_match { + template <typename ITy> bool match(ITy *V) { + if (auto *AsValue = dyn_cast<Value>(V)) + return isGuaranteedNotToBeUndefOrPoison(AsValue); ---------------- dtcxzyw wrote:
I don't like this helper. Some context information (e.g., AC/DT/CxtI) is available in InstCombine. They are useful to get a more precise analysis result. https://github.com/llvm/llvm-project/pull/129776 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits